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