withOwnerIfMissing method

MailboxNotification withOwnerIfMissing(
  1. String owner
)

This notification with ownerPeerId set to owner if the server did not send one.

Implementation

MailboxNotification withOwnerIfMissing(String owner) => ownerPeerId != null
    ? this
    : MailboxNotification(
        mailboxPath: mailboxPath,
        mailboxType: mailboxType,
        messageCount: messageCount,
        timestamp: timestamp,
        serverPeerId: serverPeerId,
        ownerPeerId: owner,
      );