Browse Source

message page

wr_202303
zsw 4 months ago
parent
commit
5f2e1c5d1a
  1. 3
      lib/im/database/message.dart

3
lib/im/database/message.dart

@ -79,7 +79,7 @@ createSendMessage(var toId, String content, {String attach, int msgType, userId,
}; };
} }
createMessage(var toId, Uint8List dataBytes, {String attach, int msgType, userId, replyId}) { createMessage(var toId, Uint8List dataBytes, {String attach, int msgType, userId, replyId}) ccc{
String content = ""; String content = "";
MsgType type = MsgType.values[msgType]; MsgType type = MsgType.values[msgType];
if (type == MsgType.TEXT) { if (type == MsgType.TEXT) {
@ -96,7 +96,6 @@ createMessage(var toId, Uint8List dataBytes, {String attach, int msgType, userId
} }
} }
return <String, dynamic>{ return <String, dynamic>{
"conversationId": conversationId(userId, toId), "conversationId": conversationId(userId, toId),
"fromId": userId, "fromId": userId,

Loading…
Cancel
Save