Add support for Iceshrimp.NET emoji reaction notifications
This commit is contained in:
committed by
nicole mikołajczyk
parent
5d0c86b3ce
commit
005a6b09b1
@ -101,6 +101,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
|
|||||||
...notification,
|
...notification,
|
||||||
type: notification.type === 'pleroma:report'
|
type: notification.type === 'pleroma:report'
|
||||||
? 'admin.report'
|
? 'admin.report'
|
||||||
|
: notification.type === 'reaction'
|
||||||
|
? 'emoji_reaction'
|
||||||
: notification.type?.replace(/^pleroma:/, ''),
|
: notification.type?.replace(/^pleroma:/, ''),
|
||||||
})),
|
})),
|
||||||
v.variant('type', [
|
v.variant('type', [
|
||||||
|
|||||||
@ -36,7 +36,7 @@ const NOTIFICATIONS_SCROLL_TOP = 'NOTIFICATIONS_SCROLL_TOP' as const;
|
|||||||
const FILTER_TYPES = {
|
const FILTER_TYPES = {
|
||||||
all: undefined,
|
all: undefined,
|
||||||
mention: ['mention'],
|
mention: ['mention'],
|
||||||
favourite: ['favourite', 'emoji_reaction'],
|
favourite: ['favourite', 'emoji_reaction', 'reaction'],
|
||||||
reblog: ['reblog'],
|
reblog: ['reblog'],
|
||||||
poll: ['poll'],
|
poll: ['poll'],
|
||||||
status: ['status'],
|
status: ['status'],
|
||||||
|
|||||||
@ -12,6 +12,7 @@ const NOTIFICATION_TYPES = [
|
|||||||
'move',
|
'move',
|
||||||
'chat_mention',
|
'chat_mention',
|
||||||
'emoji_reaction',
|
'emoji_reaction',
|
||||||
|
'reaction',
|
||||||
'update',
|
'update',
|
||||||
'event_reminder',
|
'event_reminder',
|
||||||
'participation_request',
|
'participation_request',
|
||||||
|
|||||||
Reference in New Issue
Block a user