Commit 98ac6744 authored by Haelwenn's avatar Haelwenn

Show the emoji used in the reaction

parent c04268e1
Pipeline #23617 passed with stage
in 1 minute and 29 seconds
......@@ -205,12 +205,13 @@ function parseNotification(data) {
item['attachments'] = [];
break;
case "pleroma:emoji_reaction":
item = parseToot(data.status)
item = parseAccounts(item, "reblog_", data["account"])
item = parseAccounts(item, "", data["status"]["account"])
item['status_reblog'] = true;
item['typeIcon'] = "image://theme/icon-s-favorite"
item['type'] = "favourite";
item = parseToot(data.status)
item = parseAccounts(item, "reblog_", data["account"])
item = parseAccounts(item, "", data["status"]["account"])
item['status_reblog'] = true;
item['typeIcon'] = "image://theme/icon-s-sailfish"
item['type'] = "favourite";
item['reaction_emoji'] = data.emoji;
break;
default: item['typeIcon'] = "image://theme/icon-s-sailfish"
}
......
......@@ -42,7 +42,7 @@ Item {
action = qsTr('followed you');
break;
case "pleroma:emoji_reaction":
action = qsTr('Reacted');
action = qsTr('Reacted with') + reaction_emoji;
break;
/* disable status header for mentions and regular posts */
case "mention":
......
......@@ -41,7 +41,7 @@ BackgroundItem {
action = qsTr('followed you');
break;
case "pleroma:emoji_reaction":
action = qsTr('Reacted');
action = qsTr('Reacted with') + reaction_emoji;
break;
default:
action = type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment