|
|
@@ -572,11 +572,12 @@ class _GroupChatPageItemState extends State<GroupChatPageItem> |
|
|
|
|
|
|
|
Widget wrapItemWithMenu(item) {
|
|
|
|
List<Function> actionsFunc = [];
|
|
|
|
List<String> actions = [I18n.of(context).delete, I18n.of(context).reply,I18n.of(context).forward];
|
|
|
|
List<String> actions = [
|
|
|
|
I18n.of(context).reply,
|
|
|
|
I18n.of(context).forward,
|
|
|
|
I18n.of(context).delete,
|
|
|
|
];
|
|
|
|
|
|
|
|
actionsFunc.add(() {
|
|
|
|
MessageMgr().emit('Delete Select Message', widget.msg);
|
|
|
|
});
|
|
|
|
actionsFunc.add(() {
|
|
|
|
print('发送引用的消息');
|
|
|
|
MessageMgr().emit('Reply Select Message', widget.msg);
|
|
|
@@ -585,6 +586,9 @@ class _GroupChatPageItemState extends State<GroupChatPageItem> |
|
|
|
print('转发消息');
|
|
|
|
AppNavigator.pushForwardPage(context, widget.msg);
|
|
|
|
});
|
|
|
|
actionsFunc.add(() {
|
|
|
|
MessageMgr().emit('Delete Select Message', widget.msg);
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -621,6 +625,15 @@ class _GroupChatPageItemState extends State<GroupChatPageItem> |
|
|
|
Clipboard.setData(clipboardData);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//如果是文件增加复制下载地址
|
|
|
|
if (widget.msg.msgType == ChatType.FileChatType.value) {
|
|
|
|
actions.insert(0, I18n.of(context).copy_download_url);
|
|
|
|
actionsFunc.insert(0, () {
|
|
|
|
UploadUtil().copyFileUrl(widget.msg, context);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (widget.msg.msgType == ChatType.ShortVoiceChatType.value) {
|
|
|
|
var soundPlayMode =
|
|
|
|
Provider.of<KeyboardIndexProvider>(context).soundPlayMode;
|
|
|
@@ -1365,8 +1378,9 @@ class _GroupChatPageItemState extends State<GroupChatPageItem> |
|
|
|
onTap: () {
|
|
|
|
AppNavigator.pushProfileInfoPage(context, memberModel.memberId,
|
|
|
|
fromWhere: 2,
|
|
|
|
addMode:
|
|
|
|
!FriendListMgr().isMyFriend(memberModel.memberId) ? 1 : 0);
|
|
|
|
addMode: !FriendListMgr().isMyFriend(memberModel.memberId)
|
|
|
|
? 1
|
|
|
|
: 0);
|
|
|
|
},
|
|
|
|
onLongPress: () {
|
|
|
|
print('long press user');
|
|
|
|