Skip to content

Commit

Permalink
feat_: Return parsed bridge messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed May 20, 2024
1 parent 292070a commit 8ae13a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/common/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8ae13a6

Please sign in to comment.