forked from cwtch.im/cwtch-ui
new lcg version
This commit is contained in:
parent
b5511ae723
commit
706d1da518
|
@ -1 +1 @@
|
||||||
2022-02-08-16-19-v1.5.4-36-g4467c40
|
2022-02-08-22-37-v1.5.4-41-gd0d5300
|
|
@ -1 +1 @@
|
||||||
2022-02-08-21-19-v1.5.4-36-g4467c40
|
2022-02-08-22-37-v1.5.4-41-gd0d5300
|
|
@ -33,7 +33,7 @@ class CwtchNotifier {
|
||||||
String? notificationConversationInfo;
|
String? notificationConversationInfo;
|
||||||
|
|
||||||
CwtchNotifier(
|
CwtchNotifier(
|
||||||
ProfileListState pcn, Settings settingsCN, ErrorHandler errorCN, TorStatus torStatusCN, NotificationsManager notificationManagerP, AppState appStateCN, ServerListState serverListStateCN) {
|
ProfileListState pcn, Settings settingsCN, ErrorHandler errorCN, TorStatus torStatusCN, NotificationsManager notificationManagerP, AppState appStateCN, ServerListState serverListStateCN) {
|
||||||
profileCN = pcn;
|
profileCN = pcn;
|
||||||
settings = settingsCN;
|
settings = settingsCN;
|
||||||
error = errorCN;
|
error = errorCN;
|
||||||
|
@ -172,7 +172,7 @@ class CwtchNotifier {
|
||||||
notificationManager.notify(notificationSimple ?? "New Message");
|
notificationManager.notify(notificationSimple ?? "New Message");
|
||||||
} else if (notification == "ContactInfo") {
|
} else if (notification == "ContactInfo") {
|
||||||
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier);
|
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier);
|
||||||
notificationManager.notify((notificationConversationInfo ?? "New Message from %1").replaceFirst("%1", (contact?.nickname ?? senderHandle.toString())));
|
notificationManager.notify((notificationConversationInfo ?? "New Message from %1").replaceFirst("%1", (contact?.nickname ?? senderHandle.toString())));
|
||||||
}
|
}
|
||||||
|
|
||||||
profileCN.getProfile(data["ProfileOnion"])?.newMessage(
|
profileCN.getProfile(data["ProfileOnion"])?.newMessage(
|
||||||
|
@ -249,7 +249,7 @@ class CwtchNotifier {
|
||||||
notificationManager.notify(notificationSimple ?? "New Message");
|
notificationManager.notify(notificationSimple ?? "New Message");
|
||||||
} else if (notification == "ContactInfo") {
|
} else if (notification == "ContactInfo") {
|
||||||
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier);
|
var contact = profileCN.getProfile(data["ProfileOnion"])?.contactList.getContact(identifier);
|
||||||
notificationManager.notify( (notificationConversationInfo ?? "New Message from %1").replaceFirst("%1", (contact?.nickname ?? senderHandle.toString())));
|
notificationManager.notify((notificationConversationInfo ?? "New Message from %1").replaceFirst("%1", (contact?.nickname ?? senderHandle.toString())));
|
||||||
}
|
}
|
||||||
appState.notifyProfileUnread();
|
appState.notifyProfileUnread();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue