Skip to content
Unverified Commit 0617589c authored by Joas Schilling's avatar Joas Schilling
Browse files

Move unreadMessageElement from computed to a method



Depending on invocation order otherwise the computed
could be first used before the element was mounted to the DOM.
That would cache the computed and cause the element
to never exist although it was added to the DOM afterwards.

The problem with a cached "null" is that
"first unread message has not been seen yet, so don't move it"
then always exited the updating of the readmarker.

Signed-off-by: default avatarJoas Schilling <coding@schilljs.com>
parent 04d053b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment