Skip to content

Commit

Permalink
Merge pull request #12498 from nextcloud/fix/noid/temp-message-markdown
Browse files Browse the repository at this point in the history
fix(messagesStore): add missing `markdown` in temporary message object
  • Loading branch information
DorraJaouad authored Jun 12, 2024
2 parents 7874470 + a59d2f8 commit dc6f048
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 dc6f048

Please sign in to comment.