feat: Allow the sender's data being null

This commit is contained in:
2023-07-30 22:05:45 +02:00
parent 2490a8ee9f
commit 2f5a39416b
4 changed files with 63 additions and 31 deletions

View File

@@ -38,10 +38,10 @@ class NotificationMessage {
);
/// The sender of the message.
final String sender;
final String? sender;
/// The jid of the sender.
final String jid;
final String? jid;
/// The body of the message.
final NotificationMessageContent content;
@@ -111,12 +111,16 @@ enum NotificationEventType {
class NotificationEvent {
const NotificationEvent(
this.id,
this.jid,
this.type,
this.payload,
this.extra,
);
/// The notification id.
final int id;
/// The JID the notification was for.
final String jid;