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