From 8ff0cfe5b1407eb185cb5d5857602558e6a6d7ab Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 20 Sep 2023 12:28:49 -0700 Subject: [PATCH] New Icons, New Translations, More Complete Profile Menu --- lib/cwtch/cwtch.dart | 2 +- lib/cwtch/ffi.dart | 2 +- lib/cwtch/gomobile.dart | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/cwtch/cwtch.dart b/lib/cwtch/cwtch.dart index c93b54d7..811e8abd 100644 --- a/lib/cwtch/cwtch.dart +++ b/lib/cwtch/cwtch.dart @@ -155,5 +155,5 @@ abstract class Cwtch { Future SearchConversations(String profile, String pattern); void DeleteServerInfo(String profile, String handle); - void ConfigureConnections(String onion, bool listen, bool peers, bool servers); + Future ConfigureConnections(String onion, bool listen, bool peers, bool servers); } diff --git a/lib/cwtch/ffi.dart b/lib/cwtch/ffi.dart index 47479ce9..3b1cfe9a 100644 --- a/lib/cwtch/ffi.dart +++ b/lib/cwtch/ffi.dart @@ -1102,7 +1102,7 @@ class CwtchFfi implements Cwtch { } @override - void ConfigureConnections(String profile, bool listen, bool peers, bool servers) { + Future ConfigureConnections(String profile, bool listen, bool peers, bool servers) async { var configureConnections = library.lookup>("c_ConfigureConnections"); // ignore: non_constant_identifier_names final ConfigureConnections = configureConnections.asFunction(); diff --git a/lib/cwtch/gomobile.dart b/lib/cwtch/gomobile.dart index dd06c280..476cf7c7 100644 --- a/lib/cwtch/gomobile.dart +++ b/lib/cwtch/gomobile.dart @@ -460,7 +460,8 @@ class CwtchGomobile implements Cwtch { } @override - void ConfigureConnections(String profile, bool listen, bool peers, bool servers) { + Future ConfigureConnections(String profile, bool listen, bool peers, bool servers) async { cwtchPlatform.invokeMethod("ConfigureConnections", {"ProfileOnion": profile, "listen": listen, "peers": peers, "servers": servers}); + return; } }