Skip to content

Commit

Permalink
fix(messagesStore): add missing markdown in temporary message object
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Jun 12, 2024
1 parent 7874470 commit a59d2f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/messagesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -715,6 +716,7 @@ const actions = {
actorDisplayName: context.getters.getDisplayName(),
timestamp: 0,
systemMessage: '',
markdown: supportMarkdown,
messageType: isVoiceMessage ? 'voice-message' : '',
message: text,
messageParameters,
Expand Down

0 comments on commit a59d2f8

Please sign in to comment.