fix(chat): enabled "everyone" in group chat mentions

Closes #11029
This commit is contained in:
Alexandra Betouni 2023-09-07 20:50:42 +03:00
parent 95f6350e8f
commit b5d555f00b
2 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,6 @@ Item {
property int cursorPosition: 0
property int lastAtPosition: 0
property var property: ([])
property bool addSystemSuggestions: false
onFilterChanged: invalidateFilter()
onPropertyChanged: invalidateFilter()
@ -86,7 +85,7 @@ Item {
name: "everyone",
icon: ""
}
if (suggestionsPanelRoot.addSystemSuggestions && (all || isAcceptedItem(filter, everyoneItem))) {
if (all || isAcceptedItem(filter, everyoneItem)) {
filterModel.append(everyoneItem)
}
}

View File

@ -320,7 +320,6 @@ Item {
emojiPopup: root.emojiPopup
stickersPopup: root.stickersPopup
chatType: root.activeChatType
suggestions.suggestionFilter.addSystemSuggestions: chatType === Constants.chatType.communityChat
textInput.onTextChanged: {
d.updateLinkPreviews()