parent
6d108e5de3
commit
36f29b4b76
2 changed files with 7 additions and 1 deletions
|
@ -69,6 +69,7 @@ export interface BaseNotificationJSON {
|
|||
group_key: string;
|
||||
account: ApiAccountJSON;
|
||||
emoji_reaction?: NotifyEmojiReactionJSON;
|
||||
list?: ApiListJSON_KmyDummy;
|
||||
}
|
||||
|
||||
export interface BaseNotificationGroupJSON {
|
||||
|
|
|
@ -248,12 +248,17 @@ export function createNotificationGroupFromNotificationJSON(
|
|||
case 'favourite':
|
||||
case 'reblog':
|
||||
case 'status':
|
||||
case 'list_status':
|
||||
case 'mention':
|
||||
case 'status_reference':
|
||||
case 'poll':
|
||||
case 'update':
|
||||
return { ...group, statusId: notification.status?.id };
|
||||
case 'list_status':
|
||||
return {
|
||||
...group,
|
||||
statusId: notification.status?.id,
|
||||
list: notification.list,
|
||||
};
|
||||
case 'emoji_reaction':
|
||||
return {
|
||||
...group,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue