diff --git a/lib/src/omemo/omemomanager.dart b/lib/src/omemo/omemomanager.dart index c55eb01..788977a 100644 --- a/lib/src/omemo/omemomanager.dart +++ b/lib/src/omemo/omemomanager.dart @@ -655,6 +655,9 @@ class OmemoManager { /// Returns the device used for encryption and decryption. Future getDevice() => _deviceLock.synchronized(() => _device); + /// Returns the id of the device used for encryption and decryption. + Future getDeviceId() => (await getDevice()).id; + /// Returns the fingerprints for all devices of [jid] that we have a session with. /// If there are not sessions with [jid], then returns null. Future?> getFingerprintsForJid(String jid) async {