Refactor code for improved readability and null safety in various files Also updated PR to allow login via map.
This commit is contained in:
1 parent
be3b920b3f
commit
8c3ffa5472
5 files changed
+54
-22
No files matched your search
@@ -1996,14 +1996,14 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
final settings = _appSettingsService!.settings;
|
||||
if (settings.notificationsEnabled && settings.notifyOnNewMessage) {
|
||||
// Find the contact name
|
||||
if(contact?.type == advTypeChat) {
|
||||
if (contact?.type == advTypeChat) {
|
||||
_notificationService.showMessageNotification(
|
||||
contactName: contact?.name ?? 'Unknown',
|
||||
message: message.text,
|
||||
contactId: message.senderKeyHex,
|
||||
badgeCount: getTotalUnreadCount(),
|
||||
);
|
||||
}else if(contact?.type == advTypeRoom) {
|
||||
} else if (contact?.type == advTypeRoom) {
|
||||
_notificationService.showMessageNotification(
|
||||
contactName: contact?.name ?? 'Unknown Room',
|
||||
message: message.text.substring(4),
|
||||
|
||||
Reference in new issue
Block a user