Skip to content

Commit

Permalink
fix: Fixed buttons title
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored Apr 25, 2022
1 parent 8713b5c commit ae0a6e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chat/functions/prepareMessageButtons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,21 +224,21 @@ webpack.onInjected(() => {
delete r.locationMessage;
} else if (r.conversation) {
if (message.title) {
r.templateMessage.hydratedTemplate.hydratedTitleText = r.conversation;
} else {
r.templateMessage.hydratedTemplate.hydratedTitleText = message.title;
r.templateMessage.hydratedTemplate.hydratedContentText =
r.conversation;
} else {
r.templateMessage.hydratedTemplate.hydratedTitleText = r.conversation;
}
delete r.conversation;
} else if (r.extendedTextMessage?.text) {
if (message.title) {
r.templateMessage.hydratedTemplate.hydratedTitleText =
r.extendedTextMessage?.text;
} else {
r.templateMessage.hydratedTemplate.hydratedTitleText = message.title;
r.templateMessage.hydratedTemplate.hydratedContentText =
r.extendedTextMessage?.text;
} else {
r.templateMessage.hydratedTemplate.hydratedTitleText =
r.extendedTextMessage?.text;
}
delete r.extendedTextMessage;
} else {
Expand Down

0 comments on commit ae0a6e9

Please sign in to comment.