fix: multiple push notifications susbscriptions on multiple account servers (#1069)
This commit is contained in:
parent
a733fbba08
commit
1d151c53c4
6 changed files with 33 additions and 7 deletions
|
@ -24,3 +24,12 @@ export interface CustomEmojisInfo {
|
|||
lastUpdate: number
|
||||
emojis: mastodon.v1.CustomEmoji[]
|
||||
}
|
||||
|
||||
export type PushSubscriptionErrorCode = 'too_many_registrations'
|
||||
export class PushSubscriptionError extends Error {
|
||||
code: PushSubscriptionErrorCode
|
||||
constructor(code: PushSubscriptionErrorCode, message?: string) {
|
||||
super(message)
|
||||
this.code = code
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue