nextcloud/apps/comments/js
Daniel Calviño Sánchez 0db3a413b3 Fix mentioned user not clickable after posting or editing a comment
The contactsMenu plugin was called on avatar elements from
_postRenderItem, which is called when a new comment is added to the
collection. Due to this contactsMenu was not called when messages were
edited; when a new comment is posted _postRenderItem is called, but at
that time the "mentions" attribute is not filled yet, so "@username" is
not replaced by avatars in the message and thus contactsMenu has no
avatars to be called on.

Calling contactsMenu was moved to a new method, _postRenderMessage,
which is called from _postRenderItem and from the success callback when
fetching the model in _onSubmitSuccess (which replaces "@username" by
avatars in the message after posting or editing a comment).

Fixes #4555

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-05-08 22:24:33 +02:00
..
activitytabviewplugin.js Move comments activities to the new API 2016-11-16 12:20:03 +01:00
app.js
commentcollection.js Reset comments read marker after loading comments 2016-02-03 16:18:14 +01:00
commentmodel.js mention property to follow same style 2016-12-23 17:01:58 +01:00
commentstabview.js Fix mentioned user not clickable after posting or editing a comment 2017-05-08 22:24:33 +02:00
commentsummarymodel.js Fixed size issues on main detail view and disappearing of share recipients (#26603) 2016-12-23 16:56:55 +01:00
filesplugin.js Fixed size issues on main detail view and disappearing of share recipients (#26603) 2016-12-23 16:56:55 +01:00
merged.json Merge JS for comments 2017-03-24 19:49:43 +01:00