summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDorraJaouad <dorra.jaoued7@gmail.com>2024-06-12 18:03:11 +0200
committerDorraJaouad <dorra.jaoued7@gmail.com>2024-06-12 18:03:11 +0200
commita59d2f872bfc14e8d42f166978c922847400e61d (patch)
treec4729c7b424dfdad6c55f161fffbc32af6bd0e53 /src
parent7874470b97549686790e6de89ad085a8570658e2 (diff)
fix(messagesStore): add missing `markdown` in temporary message object
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/store/messagesStore.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js
index 72db09cbe..8e56f7fa6 100644
--- a/src/store/messagesStore.js
+++ b/src/store/messagesStore.js
@@ -34,6 +34,7 @@ import { useSharedItemsStore } from '../stores/sharedItems.js'
import CancelableRequest from '../utils/cancelableRequest.js'
const markAsReadWithoutLast = getCapabilities()?.spreed?.features?.includes('chat-read-last')
+const supportMarkdown = getCapabilities()?.spreed?.features?.includes('markdown-messages')
/**
* Returns whether the given message contains a mention to self, directly
@@ -715,6 +716,7 @@ const actions = {
actorDisplayName: context.getters.getDisplayName(),
timestamp: 0,
systemMessage: '',
+ markdown: supportMarkdown,
messageType: isVoiceMessage ? 'voice-message' : '',
message: text,
messageParameters,