Fix wrong button text for bot's sponsored message

This commit is contained in:
Eduard Kuzmenko 2022-01-27 09:39:22 +04:00
parent 3fcd02eed4
commit 593c5844b9

View File

@ -3952,7 +3952,7 @@ export default class ChatBubbles {
if(sponsoredMessage.channel_post) {
text = 'OpenChannelPost';
mid = this.appMessagesIdsManager.generateMessageId(sponsoredMessage.channel_post);
} else if(sponsoredMessage.start_param) {
} else if(sponsoredMessage.start_param || this.appUsersManager.isBot(peerId.toUserId())) {
text = 'Chat.Message.ViewBot';
startParam = sponsoredMessage.start_param;
} else {