comment/format fix
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
Dan Ballard 2022-02-08 18:21:06 -05:00
parent 706d1da518
commit 8ba54469eb
1 changed files with 6 additions and 12 deletions

View File

@ -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"],