|
|
@@ -23,6 +23,7 @@ import 'package:chat/utils/screen.dart'; |
|
|
|
import 'package:chat/utils/sound_util.dart';
|
|
|
|
import 'package:chat/utils/sp_utils.dart';
|
|
|
|
import 'package:chat/utils/sql_util.dart';
|
|
|
|
import 'package:chat/utils/upload_util.dart';
|
|
|
|
import 'package:extended_text/extended_text.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
@@ -111,7 +112,12 @@ class _GroupChatPageState extends State<GroupChatPage> { |
|
|
|
ChatType.valueOf(originMsg.msgType), originMsg.msgContent,
|
|
|
|
channelType: ChatChannelType.Group);
|
|
|
|
msg.extraInfo = originMsg.extraInfo;
|
|
|
|
msg.extraFile = originMsg.extraFile;
|
|
|
|
// msg.extraFile = originMsg.extraFile;
|
|
|
|
if(originMsg.extraFile.contains('http')){
|
|
|
|
msg.extraFile = originMsg.extraFile;
|
|
|
|
}else{
|
|
|
|
msg.extraFile = UploadUtil().getFullUrl(originMsg.extraFile, originMsg.sessionId, originMsg.channelType);
|
|
|
|
}
|
|
|
|
msg.localFile = originMsg.localFile;
|
|
|
|
if (msg.localFile != null) {
|
|
|
|
msg.state = MsgState.Uploaded;
|
|
|
|