Skip to content

Commit

Permalink
Merge pull request #841 from nextcloud/disable-contacts-menu-for-ment…
Browse files Browse the repository at this point in the history
…ions-in-the-public-view

Disable contacts menu for mentions in the public view
  • Loading branch information
nickvergessen authored May 2, 2018
2 parents c431752 + 04bd307 commit 56bf670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css/comments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ body:not(#body-public) #commentsTabView .comment .authorRow:not(.currentUser):no
color: $color-primary-text;
}

#commentsTabView .comment .message .mention-user:not(.current-user) {
body:not(#body-public) #commentsTabView .comment:not(.newCommentRow) .message .mention-user:not(.current-user) {
cursor: pointer;
}

Expand Down
5 changes: 5 additions & 0 deletions js/views/chatview.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,11 @@
},

_postRenderMessage: function($el) {
// Contacts menu is not shown in public view.
if (!OC.getCurrentUser().uid) {
return;
}

$el.find('.mention-user').each(function() {
var $this = $(this);

Expand Down

0 comments on commit 56bf670

Please sign in to comment.