From 9626763b4459c3d382617fd10832b33f6e4307fc Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 8 Aug 2022 15:10:36 +0200 Subject: [PATCH] feat: Make the replacement functions internal --- lib/src/omemo/device.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/omemo/device.dart b/lib/src/omemo/device.dart index 5e3f41e..c98619b 100644 --- a/lib/src/omemo/device.dart +++ b/lib/src/omemo/device.dart @@ -101,6 +101,7 @@ class Device { /// This replaces the Onetime-Prekey with id [id] with a completely new one. Returns /// a new Device object that copies over everything but replaces said key. + @internal Future replaceOnetimePrekey(int id) async { opks[id] = await OmemoKeyPair.generateNewPair(KeyPairType.x25519); @@ -117,6 +118,7 @@ class Device { /// This replaces the Signed-Prekey with a completely new one. Returns a new Device object /// that copies over everything but replaces the Signed-Prekey and its signature. + @internal Future replaceSignedPrekey() async { final newSpk = await OmemoKeyPair.generateNewPair(KeyPairType.x25519); final newSpkId = generateRandom32BitNumber();