comment/format fix
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
706d1da518
commit
8ba54469eb
|
@ -79,12 +79,10 @@ class CwtchNotifier {
|
||||||
savePeerHistory: data["saveConversationHistory"] == null ? "DeleteHistoryConfirmed" : data["saveConversationHistory"],
|
savePeerHistory: data["saveConversationHistory"] == null ? "DeleteHistoryConfirmed" : data["saveConversationHistory"],
|
||||||
numMessages: int.parse(data["numMessages"]),
|
numMessages: int.parse(data["numMessages"]),
|
||||||
numUnread: int.parse(data["unread"]),
|
numUnread: int.parse(data["unread"]),
|
||||||
isGroup: false,
|
isGroup: false, // by definition
|
||||||
// by definition
|
|
||||||
server: null,
|
server: null,
|
||||||
archived: false,
|
archived: false,
|
||||||
lastMessageTime: DateTime.now(),
|
lastMessageTime: DateTime.now(), //show at the top of the contact list even if no messages yet
|
||||||
//show at the top of the contact list even if no messages yet
|
|
||||||
notificationPolicy: data["notificationPolicy"] ?? "ConversationNotificationPolicy.Default"));
|
notificationPolicy: data["notificationPolicy"] ?? "ConversationNotificationPolicy.Default"));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -114,10 +112,8 @@ class CwtchNotifier {
|
||||||
}
|
}
|
||||||
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(int.parse(data["ConversationID"])) == null) {
|
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"],
|
profileCN.getProfile(data["ProfileOnion"])?.contactList.add(ContactInfoState(data["ProfileOnion"], int.parse(data["ConversationID"]), data["GroupID"],
|
||||||
blocked: false,
|
blocked: false, // we created
|
||||||
// we created
|
accepted: true, // we created
|
||||||
accepted: true,
|
|
||||||
// we created
|
|
||||||
imagePath: data["picture"],
|
imagePath: data["picture"],
|
||||||
defaultImagePath: data["picture"],
|
defaultImagePath: data["picture"],
|
||||||
nickname: data["GroupName"],
|
nickname: data["GroupName"],
|
||||||
|
@ -329,10 +325,8 @@ class CwtchNotifier {
|
||||||
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.findContact(groupInvite["GroupID"]) == null) {
|
if (profileCN.getProfile(data["ProfileOnion"])?.contactList.findContact(groupInvite["GroupID"]) == null) {
|
||||||
var identifier = int.parse(data["ConversationID"]);
|
var identifier = int.parse(data["ConversationID"]);
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.contactList.add(ContactInfoState(data["ProfileOnion"], identifier, groupInvite["GroupID"],
|
profileCN.getProfile(data["ProfileOnion"])?.contactList.add(ContactInfoState(data["ProfileOnion"], identifier, groupInvite["GroupID"],
|
||||||
blocked: false,
|
blocked: false, // NewGroup only issued on accepting invite
|
||||||
// NewGroup only issued on accepting invite
|
accepted: true, // NewGroup only issued on accepting invite
|
||||||
accepted: true,
|
|
||||||
// NewGroup only issued on accepting invite
|
|
||||||
imagePath: data["picture"],
|
imagePath: data["picture"],
|
||||||
nickname: groupInvite["GroupName"],
|
nickname: groupInvite["GroupName"],
|
||||||
server: groupInvite["ServerHost"],
|
server: groupInvite["ServerHost"],
|
||||||
|
|
Loading…
Reference in New Issue