✌️
This commit is contained in:
parent
a8c4c74954
commit
bf1db27824
15 changed files with 435 additions and 169 deletions
|
|
@ -11,6 +11,8 @@ type pushNotificationsTypes = {
|
|||
'unreadMessagingMessage': PackedMessagingMessage;
|
||||
'readNotifications': { notificationIds: string[] };
|
||||
'readAllNotifications': undefined;
|
||||
'readAllMessagingMessages': undefined;
|
||||
'readAllMessagingMessagesOfARoom': { userId: string } | { groupId: string };
|
||||
};
|
||||
|
||||
export async function pushNotification<T extends keyof pushNotificationsTypes>(userId: string, type: T, body: pushNotificationsTypes[T]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue