mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 00:25:17 +00:00
And frienship notifications support
This commit is contained in:
@ -105,7 +105,21 @@ export class NotificationsHelper {
|
||||
}
|
||||
}
|
||||
|
||||
// Frienship notifications
|
||||
else if(n.onElemType == NotifElemType.FRIENDSHIP_REQUEST) {
|
||||
n.fromContainerID = 0
|
||||
n.fromContainerType = NotifElemType.EMPTY;
|
||||
await this.PushPrivate(n);
|
||||
}
|
||||
|
||||
|
||||
// TODO : continue
|
||||
|
||||
// Unsupported notification type
|
||||
else {
|
||||
console.error(n)
|
||||
throw new Error("Type of notification not supported!")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user