FIX: don't suggest groups when inviting to a topic (#6105)

This commit is contained in:
OsamaSayegh 2018-07-19 12:02:34 +03:00 committed by Guo Xiang Tan
parent 4765507585
commit fa02df9985
2 changed files with 0 additions and 6 deletions

View File

@ -225,11 +225,6 @@ export default Ember.Controller.extend(ModalFunctionality, {
return Group.findAll({ term: term, ignore_automatic: true });
},
@computed("isPrivateTopic", "isMessage")
includeMentionableGroups(isPrivateTopic, isMessage) {
return !isPrivateTopic && !isMessage;
},
@computed("isMessage", "emailOrUsername", "invitingExistingUserToTopic")
successMessage(isMessage, emailOrUsername, invitingExistingUserToTopic) {
if (this.get("hasGroups")) {

View File

@ -18,7 +18,6 @@
single=true
allowAny=true
excludeCurrentUser=true
includeMentionableGroups=includeMentionableGroups
includeMessageableGroups=isMessage
hasGroups=hasGroups
usernames=emailOrUsername