From 33609ea773dd77c2123b02b0a8fadd0688426d89 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Thu, 17 Nov 2022 09:49:31 +0300 Subject: [PATCH] Chat Fixes --- lib/api/chat/chat_provider_model.dart | 4 +++- lib/ui/chat/chat_detailed_screen.dart | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/api/chat/chat_provider_model.dart b/lib/api/chat/chat_provider_model.dart index bf4c33a..ff02c4d 100644 --- a/lib/api/chat/chat_provider_model.dart +++ b/lib/api/chat/chat_provider_model.dart @@ -50,6 +50,7 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { { "employeeNumber": int.parse( AppState().memberInformationList!.eMPLOYEENUMBER.toString(), + // "" ), "password": "FxIu26rWIKoF8n6mpbOmAjDLphzFGmpG" }, @@ -430,10 +431,11 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin { Future sendChatToServer( {required int chatEventId, required fileTypeId, required int targetUserId, required String targetUserName, required chatReplyId, required bool isAttachment, required bool isReply}) async { Uuid uuid = const Uuid(); + var msg = message.text; SingleUserChatModel data = SingleUserChatModel( chatEventId: chatEventId, chatSource: 1, - contant: message.text, + contant: msg, contantNo: uuid.v4(), conversationId: uuid.v4(), createdDate: DateTime.now(), diff --git a/lib/ui/chat/chat_detailed_screen.dart b/lib/ui/chat/chat_detailed_screen.dart index 71a95b5..ff661f1 100644 --- a/lib/ui/chat/chat_detailed_screen.dart +++ b/lib/ui/chat/chat_detailed_screen.dart @@ -71,7 +71,7 @@ class _ChatDetailScreenState extends State { actions: [ IconButton( onPressed: () { - // makeCall("AUDIO"); + makeCall("AUDIO"); }, icon: SvgPicture.asset( "assets/images/call.svg", @@ -81,7 +81,7 @@ class _ChatDetailScreenState extends State { ), IconButton( onPressed: () { - // makeCall("VIDEO"); + makeCall("VIDEO"); }, icon: SvgPicture.asset( "assets/images/call.svg",