1
0
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:
2020-03-24 18:16:51 +01:00
parent 27a0c7d1c8
commit 4bf99cb550
4 changed files with 41 additions and 1 deletions

View File

@ -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!")
}
}
/**