From 8ba54469eb74abf211db6f8ab7eb73e6bc8edc30 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 8 Feb 2022 18:21:06 -0500 Subject: [PATCH] comment/format fix --- lib/cwtch/cwtchNotifier.dart | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/cwtch/cwtchNotifier.dart b/lib/cwtch/cwtchNotifier.dart index 5d677bff..63e28097 100644 --- a/lib/cwtch/cwtchNotifier.dart +++ b/lib/cwtch/cwtchNotifier.dart @@ -79,12 +79,10 @@ class CwtchNotifier { savePeerHistory: data["saveConversationHistory"] == null ? "DeleteHistoryConfirmed" : data["saveConversationHistory"], numMessages: int.parse(data["numMessages"]), numUnread: int.parse(data["unread"]), - isGroup: false, - // by definition + isGroup: false, // by definition server: null, archived: false, - lastMessageTime: DateTime.now(), - //show at the top of the contact list even if no messages yet + lastMessageTime: DateTime.now(), //show at the top of the contact list even if no messages yet notificationPolicy: data["notificationPolicy"] ?? "ConversationNotificationPolicy.Default")); break; @@ -114,10 +112,8 @@ class CwtchNotifier { } if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(int.parse(data["ConversationID"])) == null) { profileCN.getProfile(data["ProfileOnion"])?.contactList.add(ContactInfoState(data["ProfileOnion"], int.parse(data["ConversationID"]), data["GroupID"], - blocked: false, - // we created - accepted: true, - // we created + blocked: false, // we created + accepted: true, // we created imagePath: data["picture"], defaultImagePath: data["picture"], nickname: data["GroupName"], @@ -329,10 +325,8 @@ class CwtchNotifier { if (profileCN.getProfile(data["ProfileOnion"])?.contactList.findContact(groupInvite["GroupID"]) == null) { var identifier = int.parse(data["ConversationID"]); profileCN.getProfile(data["ProfileOnion"])?.contactList.add(ContactInfoState(data["ProfileOnion"], identifier, groupInvite["GroupID"], - blocked: false, - // NewGroup only issued on accepting invite - accepted: true, - // NewGroup only issued on accepting invite + blocked: false, // NewGroup only issued on accepting invite + accepted: true, // NewGroup only issued on accepting invite imagePath: data["picture"], nickname: groupInvite["GroupName"], server: groupInvite["ServerHost"],