From aff7a5f4b210d7026c07ee2c0c587a830c7e44d2 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 16 Dec 2021 19:50:43 -0500 Subject: [PATCH] deleting removed event event handlers --- lib/cwtch/cwtchNotifier.dart | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/cwtch/cwtchNotifier.dart b/lib/cwtch/cwtchNotifier.dart index f3eaeb07..b7adfb19 100644 --- a/lib/cwtch/cwtchNotifier.dart +++ b/lib/cwtch/cwtchNotifier.dart @@ -300,12 +300,6 @@ class CwtchNotifier { } } break; - case "AcceptGroupInvite": - EnvironmentConfig.debugLog("accept group invite"); - - profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(int.parse(data["ConversationID"]))!.authorization = ContactAuthorization.approved; - profileCN.getProfile(data["ProfileOnion"])?.contactList.updateLastMessageTime(int.parse(data["ConversationID"]), DateTime.fromMillisecondsSinceEpoch(0)); - break; case "ServerStateChange": // Update the Server Cache profileCN.getProfile(data["ProfileOnion"])?.updateServerStatusCache(data["GroupServer"], data["ConnectionState"]); @@ -316,20 +310,6 @@ class CwtchNotifier { }); profileCN.getProfile(data["ProfileOnion"])?.contactList.resort(); break; - case "SetGroupAttribute": - int identifier = int.parse(data["ConversationID"]); - if (data["Key"] == "local.name") { - if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier) != null) { - profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier)!.nickname = data["Data"]; - } - } else if (data["Key"] == "local.archived") { - if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier) != null) { - profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier)!.isArchived = data["Data"] == "true"; - } - } else { - EnvironmentConfig.debugLog("unhandled set group attribute event: ${data['Key']}"); - } - break; case "SetPeerAttribute": if (data["Key"] == "local.name") { if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(data["RemotePeer"]) != null) {