From c7e758eeabfe74768a33087316e34522c3f77032 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 20 Oct 2021 10:39:25 +0200 Subject: [PATCH] [#12717] No preview for transaction messages in 1-1 chat --- VERSION | 2 +- protocol/messenger_chats.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 706f965e9..417cae76a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.89.11 +0.89.12 diff --git a/protocol/messenger_chats.go b/protocol/messenger_chats.go index 5d7d94a59..92d7eaa20 100644 --- a/protocol/messenger_chats.go +++ b/protocol/messenger_chats.go @@ -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 } }