feat: Allow removing a ratchet session

This commit is contained in:
2022-08-16 13:27:21 +02:00
parent 710b3c9497
commit 5a097e4d2a
3 changed files with 109 additions and 2 deletions

View File

@@ -12,6 +12,14 @@ class RatchetModifiedEvent extends OmemoEvent {
final OmemoDoubleRatchet ratchet;
}
/// Triggered when a ratchet has been removed and should be removed from storage.
class RatchetRemovedEvent extends OmemoEvent {
RatchetRemovedEvent(this.jid, this.deviceId);
final String jid;
final int deviceId;
}
/// Triggered when the device map has been modified
class DeviceMapModifiedEvent extends OmemoEvent {