Chat Fixes

merge-requests/57/head
Sikander Saleem 3 years ago
parent 5aa56450d9
commit 33609ea773

@ -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<void> 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(),

@ -71,7 +71,7 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
actions: [
IconButton(
onPressed: () {
// makeCall("AUDIO");
makeCall("AUDIO");
},
icon: SvgPicture.asset(
"assets/images/call.svg",
@ -81,7 +81,7 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
),
IconButton(
onPressed: () {
// makeCall("VIDEO");
makeCall("VIDEO");
},
icon: SvgPicture.asset(
"assets/images/call.svg",

Loading…
Cancel
Save