feat_: Return parsed bridge messages (#5192)

This commit is contained in:
Parvesh Monu 2024-05-27 13:32:30 +05:30 committed by GitHub
parent 94e5431ea3
commit 644f64b260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -596,6 +596,8 @@ func (m *Message) PrepareContent(identity string) error {
switch m.ContentType {
case protobuf.ChatMessage_DISCORD_MESSAGE:
parsedText = markdown.Parse([]byte(m.GetDiscordMessage().Content), nil)
case protobuf.ChatMessage_BRIDGE_MESSAGE:
parsedText = markdown.Parse([]byte(m.GetBridgeMessage().Content), nil)
default:
parsedText = markdown.Parse([]byte(m.Text), nil)
}