mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix: localService
This commit is contained in:
parent
5ae3295a8d
commit
c5af30349d
7 changed files with 21 additions and 12 deletions
|
@ -1,3 +1,7 @@
|
|||
## 1.2.1
|
||||
|
||||
- Fixed bug in the LocalChatService
|
||||
|
||||
## 1.2.0
|
||||
|
||||
- Added linter and workflow
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
name: flutter_chat
|
||||
description: A new Flutter package project.
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
|
||||
publish_to: none
|
||||
|
||||
|
@ -20,17 +20,17 @@ dependencies:
|
|||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_view
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
flutter_chat_interface:
|
||||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_interface
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
flutter_chat_local:
|
||||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_local
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_iconica_analysis:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
name: flutter_chat_firebase
|
||||
description: A new Flutter package project.
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
|
@ -23,7 +23,7 @@ dependencies:
|
|||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_interface
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_iconica_analysis:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
name: flutter_chat_interface
|
||||
description: A new Flutter package project.
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
|
|
|
@ -36,7 +36,12 @@ class LocalChatOverviewService
|
|||
Future<ChatModel> getChatByUser(ChatUserModel user) {
|
||||
PersonalChatModel? chat;
|
||||
try {
|
||||
chat = _chats.firstWhere((element) => element.user.id == user.id);
|
||||
chat = _chats.firstWhere(
|
||||
(element) => element.user.id == user.id,
|
||||
orElse: () {
|
||||
throw Exception();
|
||||
},
|
||||
);
|
||||
} on Exception catch (_) {
|
||||
chat = PersonalChatModel(
|
||||
user: user,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_chat_local
|
||||
description: "A new Flutter package project."
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
publish_to: none
|
||||
homepage:
|
||||
|
||||
|
@ -15,7 +15,7 @@ dependencies:
|
|||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_interface
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
name: flutter_chat_view
|
||||
description: A standard flutter package.
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
|
||||
publish_to: none
|
||||
|
||||
|
@ -20,7 +20,7 @@ dependencies:
|
|||
git:
|
||||
url: https://github.com/Iconica-Development/flutter_chat
|
||||
path: packages/flutter_chat_interface
|
||||
ref: 1.2.0
|
||||
ref: 1.2.1
|
||||
cached_network_image: ^3.2.2
|
||||
flutter_image_picker:
|
||||
git:
|
||||
|
|
Loading…
Reference in a new issue