mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Suggest @room when @channel, @everyone, or @here is typed in composer (#7737)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
09b88d1fbe
commit
094b29bb21
@ -43,7 +43,9 @@ export default class NotifProvider extends AutocompleteProvider {
|
||||
if (!this.room.currentState.mayTriggerNotifOfType('room', client.credentials.userId)) return [];
|
||||
|
||||
const { command, range } = this.getCurrentCommand(query, selection, force);
|
||||
if (command && command[0] && '@room'.startsWith(command[0]) && command[0].length > 1) {
|
||||
if (command?.[0].length > 1 &&
|
||||
['@room', '@channel', '@everyone', '@here'].some(c => c.startsWith(command[0]))
|
||||
) {
|
||||
return [{
|
||||
completion: '@room',
|
||||
completionId: '@room',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user