Skip to content

Commit

Permalink
Only add "copy link" option to public conversations.
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
  • Loading branch information
Ivansss committed Apr 3, 2019
1 parent 8e1c523 commit fd6aecf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/views/roomlistview.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@
'</li>'+
'{{/if}}'+
'{{/if}}'+
'{{#if isPublic}}'+
'<li>'+
'<button class="clipboard-button">'+
'<span class="icon-clippy"></span>'+
'<span>'+t('spreed', 'Copy link')+'</span>'+
'</button>'+
'</li>'+
'{{/if}}'+
'<li><div class="separator"></div></li>'+
'<li{{#if notifyAlways}} class="active"{{/if}}>'+
'<button class="notify-always-button">'+
Expand Down Expand Up @@ -179,6 +181,7 @@
return {
icon: icon,
canFavorite: this.model.get('participantType') !== 5,
isPublic: this.model.get('type') === OCA.SpreedMe.app.ROOM_TYPE_PUBLIC,
notifyAlways: this.model.get('notificationLevel') === OCA.SpreedMe.app.NOTIFY_ALWAYS,
notifyMention: this.model.get('notificationLevel') === OCA.SpreedMe.app.NOTIFY_MENTION,
notifyNever: this.model.get('notificationLevel') === OCA.SpreedMe.app.NOTIFY_NEVER,
Expand Down

0 comments on commit fd6aecf

Please sign in to comment.