feat: Move recordSentMessage to pigeon

This commit is contained in:
PapaTutuWawa committed 2023-08-03 21:27:13 +02:00
1 parent 61de3cd565
commit b12e36da83
8 files changed
+102 -30

No files matched your search

+10
View File
@@ -161,6 +161,13 @@ class CryptographyResult {
final Uint8List ciphertextHash;
}
// The type of icon to use when no avatar path is provided.
enum FallbackIconType {
none,
person,
notes;
}
@HostApi()
abstract class MoxplatformApi {
/// Notification APIs
@@ -175,6 +182,9 @@ abstract class MoxplatformApi {
String getPersistentDataPath();
String getCacheDataPath();
/// Contacts APIs
void recordSentMessage(String name, String jid, String? avatarPath, FallbackIconType fallbackIcon);
/// Cryptography APIs
@async CryptographyResult? encryptFile(String sourcePath, String destPath, Uint8List key, Uint8List iv, CipherAlgorithm algorithm, String hashSpec);
@async CryptographyResult? decryptFile(String sourcePath, String destPath, Uint8List key, Uint8List iv, CipherAlgorithm algorithm, String hashSpec);