enh: channel suggestions
This commit is contained in:
1 parent
99bba12de2
commit
bbd1d2b58c
14 files changed
+341
-40
No files matched your search
@@ -56,6 +56,9 @@
|
||||
export let acceptFiles = true;
|
||||
export let showFormattingToolbar = true;
|
||||
|
||||
export let userSuggestions = false;
|
||||
export let channelSuggestions = false;
|
||||
|
||||
export let typingUsersClassName = 'from-white dark:from-gray-900';
|
||||
|
||||
let loaded = false;
|
||||
@@ -563,9 +566,24 @@
|
||||
{
|
||||
char: '@',
|
||||
render: getSuggestionRenderer(MentionList, {
|
||||
i18n
|
||||
i18n,
|
||||
triggerChar: '@',
|
||||
modelSuggestions: true,
|
||||
userSuggestions
|
||||
})
|
||||
},
|
||||
...(channelSuggestions
|
||||
? [
|
||||
{
|
||||
char: '#',
|
||||
render: getSuggestionRenderer(MentionList, {
|
||||
i18n,
|
||||
triggerChar: '#',
|
||||
channelSuggestions
|
||||
})
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
char: '/',
|
||||
render: getSuggestionRenderer(CommandSuggestionList, {
|
||||
|
||||
Reference in new issue
Block a user