diff --git a/lib/models/appstate.dart b/lib/models/appstate.dart index 39ae8454..8386b8dd 100644 --- a/lib/models/appstate.dart +++ b/lib/models/appstate.dart @@ -68,4 +68,4 @@ class AppState extends ChangeNotifier { } bool isLandscape(BuildContext c) => MediaQuery.of(c).size.width > MediaQuery.of(c).size.height; -} \ No newline at end of file +} diff --git a/lib/models/chatmessage.dart b/lib/models/chatmessage.dart index f45d9e95..348172e2 100644 --- a/lib/models/chatmessage.dart +++ b/lib/models/chatmessage.dart @@ -9,7 +9,7 @@ class ChatMessage { d = json['d']; Map toJson() => { - 'o': o, - 'd': d, - }; -} \ No newline at end of file + 'o': o, + 'd': d, + }; +} diff --git a/lib/models/contact.dart b/lib/models/contact.dart index 0b840b5c..55076712 100644 --- a/lib/models/contact.dart +++ b/lib/models/contact.dart @@ -32,17 +32,17 @@ class ContactInfoState extends ChangeNotifier { ContactInfoState(this.profileOnion, this.identifier, this.onion, {nickname = "", - isGroup = false, - accepted = false, - blocked = false, - status = "", - imagePath = "", - savePeerHistory = "DeleteHistoryConfirmed", - numMessages = 0, - numUnread = 0, - lastMessageTime, - server, - archived = false}) { + isGroup = false, + accepted = false, + blocked = false, + status = "", + imagePath = "", + savePeerHistory = "DeleteHistoryConfirmed", + numMessages = 0, + numUnread = 0, + lastMessageTime, + server, + archived = false}) { this._nickname = nickname; this._isGroup = isGroup; this._accepted = accepted; @@ -211,4 +211,4 @@ class ContactInfoState extends ChangeNotifier { this.messageCache.firstWhere((element) => element?.metadata.messageID == messageID)?.metadata.ackd = true; notifyListeners(); } -} \ No newline at end of file +} diff --git a/lib/models/contactlist.dart b/lib/models/contactlist.dart index d61038a3..a00121d9 100644 --- a/lib/models/contactlist.dart +++ b/lib/models/contactlist.dart @@ -122,4 +122,4 @@ class ContactListState extends ChangeNotifier { int idx = _contacts.indexWhere((element) => element.onion == byHandle); return idx >= 0 ? _contacts[idx] : null; } -} \ No newline at end of file +} diff --git a/lib/models/filedownloadprogress.dart b/lib/models/filedownloadprogress.dart index ea5c279a..0a4394af 100644 --- a/lib/models/filedownloadprogress.dart +++ b/lib/models/filedownloadprogress.dart @@ -24,4 +24,4 @@ String prettyBytes(int bytes) { } else { return bytes.toString() + " B"; } -} \ No newline at end of file +} diff --git a/lib/models/messagecache.dart b/lib/models/messagecache.dart index 8f9d5e16..f7fb1085 100644 --- a/lib/models/messagecache.dart +++ b/lib/models/messagecache.dart @@ -4,4 +4,4 @@ class MessageCache { final MessageMetadata metadata; final String wrapper; MessageCache(this.metadata, this.wrapper); -} \ No newline at end of file +} diff --git a/lib/models/profile.dart b/lib/models/profile.dart index a4406b69..a9191653 100644 --- a/lib/models/profile.dart +++ b/lib/models/profile.dart @@ -152,21 +152,21 @@ class ProfileInfoState extends ChangeNotifier { profileContact.lastMessageTime = DateTime.fromMillisecondsSinceEpoch(1000 * int.parse(contact["lastMsgTime"])); } else { this._contacts.add(ContactInfoState( - this.onion, - contact["identifier"], - contact["onion"], - nickname: contact["name"], - status: contact["status"], - imagePath: contact["picture"], - accepted: contact["accepted"], - blocked: contact["blocked"], - savePeerHistory: contact["saveConversationHistory"], - numMessages: contact["numMessages"], - numUnread: contact["numUnread"], - isGroup: contact["isGroup"], - server: contact["groupServer"], - lastMessageTime: DateTime.fromMillisecondsSinceEpoch(1000 * int.parse(contact["lastMsgTime"])), - )); + this.onion, + contact["identifier"], + contact["onion"], + nickname: contact["name"], + status: contact["status"], + imagePath: contact["picture"], + accepted: contact["accepted"], + blocked: contact["blocked"], + savePeerHistory: contact["saveConversationHistory"], + numMessages: contact["numMessages"], + numUnread: contact["numUnread"], + isGroup: contact["isGroup"], + server: contact["groupServer"], + lastMessageTime: DateTime.fromMillisecondsSinceEpoch(1000 * int.parse(contact["lastMsgTime"])), + )); } }); } @@ -269,4 +269,4 @@ class ProfileInfoState extends ChangeNotifier { } return prettyBytes((bytes / seconds).round()) + "/s"; } -} \ No newline at end of file +} diff --git a/lib/models/profilelist.dart b/lib/models/profilelist.dart index 34eb2526..1e0eb3e2 100644 --- a/lib/models/profilelist.dart +++ b/lib/models/profilelist.dart @@ -27,4 +27,4 @@ class ProfileListState extends ChangeNotifier { _profiles.removeWhere((element) => element.onion == onion); notifyListeners(); } -} \ No newline at end of file +} diff --git a/lib/widgets/DropdownContacts.dart b/lib/widgets/DropdownContacts.dart index 6c70ecaa..2247f9b4 100644 --- a/lib/widgets/DropdownContacts.dart +++ b/lib/widgets/DropdownContacts.dart @@ -3,7 +3,6 @@ import 'package:cwtch/models/profile.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; - bool noFilter(ContactInfoState peer) { return true; }