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( "employeeNumber": int.parse(
AppState().memberInformationList!.eMPLOYEENUMBER.toString(), AppState().memberInformationList!.eMPLOYEENUMBER.toString(),
// ""
), ),
"password": "FxIu26rWIKoF8n6mpbOmAjDLphzFGmpG" "password": "FxIu26rWIKoF8n6mpbOmAjDLphzFGmpG"
}, },
@ -430,10 +431,11 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
Future<void> sendChatToServer( Future<void> sendChatToServer(
{required int chatEventId, required fileTypeId, required int targetUserId, required String targetUserName, required chatReplyId, required bool isAttachment, required bool isReply}) async { {required int chatEventId, required fileTypeId, required int targetUserId, required String targetUserName, required chatReplyId, required bool isAttachment, required bool isReply}) async {
Uuid uuid = const Uuid(); Uuid uuid = const Uuid();
var msg = message.text;
SingleUserChatModel data = SingleUserChatModel( SingleUserChatModel data = SingleUserChatModel(
chatEventId: chatEventId, chatEventId: chatEventId,
chatSource: 1, chatSource: 1,
contant: message.text, contant: msg,
contantNo: uuid.v4(), contantNo: uuid.v4(),
conversationId: uuid.v4(), conversationId: uuid.v4(),
createdDate: DateTime.now(), createdDate: DateTime.now(),

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

Loading…
Cancel
Save