[#12717] No preview for transaction messages in 1-1 chat

This commit is contained in:
andrey 2021-10-20 10:39:25 +02:00 committed by flexsurfer
parent bade0a24ff
commit c7e758eeab
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
0.89.11
0.89.12

View File

@ -68,6 +68,11 @@ func (m *Messenger) ChatsPreview() []*ChatPreview {
chatPreview.ParsedText = chat.LastMessage.ParsedText
}
}
} else if chat.LastMessage.ContentType == protobuf.ChatMessage_EMOJI ||
chat.LastMessage.ContentType == protobuf.ChatMessage_TRANSACTION_COMMAND {
chatPreview.Text = chat.LastMessage.Text
chatPreview.ParsedText = chat.LastMessage.ParsedText
}
}