NotificationsAdapter: Show Move notifications

Based on 28a02cf72a by a1ba
This commit is contained in:
fruye 2022-11-13 16:26:11 +01:00
parent 8f7a0d333b
commit 384503b96b
3 changed files with 5 additions and 1 deletions

View File

@ -832,7 +832,9 @@ public class NotificationHelper {
case REPORT:
return context.getString(R.string.notification_report_format, account.getDomain());
case EMOJI_REACTION:
return String.format(context.getString(R.string.notification_emoji_format), accountName, notification.getEmoji());
return context.getString(R.string.notification_emoji_format, accountName, notification.getEmoji());
case MOVE:
return context.getString(R.string.notification_move_format, accountName);
}
return null;
}

View File

@ -62,6 +62,7 @@ enum class NotificationViewKind {
Notification.Type.EMOJI_REACTION,
Notification.Type.UPDATE -> NOTIFICATION
Notification.Type.FOLLOW,
Notification.Type.MOVE,
Notification.Type.SIGN_UP -> FOLLOW
Notification.Type.FOLLOW_REQUEST -> FOLLOW_REQUEST
Notification.Type.REPORT -> REPORT

View File

@ -14,6 +14,7 @@
<string name="notification_emoji_name">Emoji Reactions</string>
<string name="notification_emoji_description">Notifications about new emoji reactions</string>
<string name="pref_title_notification_filter_emoji">my posts are reacted with emojis</string>
<string name="notification_move_format">%s migrated to</string>
<string name="notification_move_name">Move</string>
</resources>