getMailboxTopic function

String getMailboxTopic(
  1. String ownerPeerId,
  2. String folderPath
)

GossipSub topic pattern for public/shared mailboxes Format: /ricochet/mailbox/{ownerPeerId}/{folderPath}

Implementation

String getMailboxTopic(String ownerPeerId, String folderPath) =>
  '/ricochet/mailbox/$ownerPeerId/${folderPath.replaceAll('/', '_')}';