server/apps
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
..
admin_audit Audit log for enabling/disabling a user 2017-04-25 17:20:35 +02:00
comments Fix mentioned user not clickable after posting or editing a comment 2017-05-08 22:24:33 +02:00
dav Enforce type hints in dav app 2017-05-04 19:32:22 -03:00
encryption [tx-robot] updated from transifex 2017-05-01 00:07:32 +00:00
federatedfilesharing [tx-robot] updated from transifex 2017-05-05 00:07:28 +00:00
federation [tx-robot] updated from transifex 2017-05-01 00:07:32 +00:00
files [tx-robot] updated from transifex 2017-05-06 00:07:33 +00:00
files_external [tx-robot] updated from transifex 2017-05-04 00:07:29 +00:00
files_sharing Merge pull request #4545 from individual-it/access-control-3726 2017-05-03 00:21:40 +02:00
files_trashbin Handle more error cases 2017-05-02 13:43:48 +02:00
files_versions Handle more error cases 2017-05-02 13:43:48 +02:00
lookup_server_connector send signature to lookup server 2017-04-28 23:41:38 -03:00
provisioning_api Merge pull request #4457 from nextcloud/fix-storage-info-with-wrong-casing 2017-04-24 10:41:16 -03:00
sharebymail [tx-robot] updated from transifex 2017-05-06 00:07:33 +00:00
systemtags [tx-robot] updated from transifex 2017-05-06 00:07:33 +00:00
testing Remove unused use statements 2017-04-22 19:23:31 -05:00
theming [tx-robot] updated from transifex 2017-05-06 00:07:33 +00:00
twofactor_backupcodes Hide 2FA backup codes if no other 2FA providers are enabled 2017-05-02 14:40:44 +02:00
updatenotification [tx-robot] updated from transifex 2017-05-04 00:07:29 +00:00
user_ldap [tx-robot] updated from transifex 2017-05-06 00:07:33 +00:00
workflowengine [tx-robot] updated from transifex 2017-05-05 00:07:28 +00:00