NotificationEventsManagerImpl

This singleton allow us to queue checking for new regular notifications AND queue ephemeral notifications from different user flows.

Functions

Link copied to clipboard
open suspend override fun observeEphemeralNotifications(): <Error class: unknown class><<Error class: unknown class>>

Ideally we should have logic that allows to mark messages as notified, but this will act for cases when we need to notify the user on information we have not persisted or that is not available anymore.

Link copied to clipboard
open suspend override fun observeRegularNotificationsChecking(): <Error class: unknown class><Unit>
Link copied to clipboard
open suspend override fun scheduleConversationSeenNotification(conversationId: <Error class: unknown class>)

Schedule the notification that informs that some conversation been seen by self-user on another device. (means that notifications about that conversation can be hidden)

Link copied to clipboard
open suspend override fun scheduleDeleteConversationNotification(ephemeralConversationNotification: EphemeralConversationNotification)

Schedule the notification that some conversation was deleted (if the notification about that conversation is displayed it should be hidden)

Link copied to clipboard
open suspend override fun scheduleDeleteMessageNotification(message: <Error class: unknown class>)

Schedule the notification that some message was deleted (if the notification about that message is displayed it should be hidden)

Link copied to clipboard
open suspend override fun scheduleEditMessageNotification(message: <Error class: unknown class>, messageContent: <Error class: unknown class>)

Schedule the notification that some message was edited (if the notification about that message is displayed it should be edited)

Link copied to clipboard
open suspend override fun scheduleRegularNotificationChecking()

Schedule re-checking of the regular notifications - notifications that are persisted and can be got by the DB-query.