|
@@ -86,6 +86,7 @@ export const setMessageHook = (message, wsStore) => {
|
|
|
...message,
|
|
|
align:'right',
|
|
|
// toUsername: message.to,
|
|
|
+ fromAvatar: message.avatar,
|
|
|
content:message.contentType === Constant.REJECT_AUDIO_ONLINE || message.contentType === Constant.REJECT_VIDEO_ONLINE?'[对方拒绝]':'[通话结束]',
|
|
|
sender: wsStore.toUserInfo.sender || {
|
|
|
uuid: walletStore.account,
|
|
@@ -100,6 +101,7 @@ export const setMessageHook = (message, wsStore) => {
|
|
|
...message,
|
|
|
// toUsername: message.friendUsername
|
|
|
align: 'right',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
}, msg), message.to);
|
|
|
}
|
|
|
// 音频消息
|
|
@@ -110,6 +112,7 @@ export const setMessageHook = (message, wsStore) => {
|
|
|
...message,
|
|
|
// toUsername: message.to,
|
|
|
align: 'right',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
localUrl: url,
|
|
|
}, msg), message.to);
|
|
|
}
|
|
@@ -121,6 +124,7 @@ export const setMessageHook = (message, wsStore) => {
|
|
|
...message,
|
|
|
// toUsername: message.to,
|
|
|
align: 'right',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
localUrl: url,
|
|
|
}, msg), message.to);
|
|
|
}
|
|
@@ -215,7 +219,8 @@ export const handleMessageHook = async (payload, wsStore) => {
|
|
|
align: 'left',
|
|
|
content: newContent,
|
|
|
contentType,
|
|
|
- messageType: MsgType.MESSAGE_TYPE_GROUP
|
|
|
+ messageType: MsgType.MESSAGE_TYPE_GROUP,
|
|
|
+ fromAvatar: message.avatar,
|
|
|
});
|
|
|
notifications(wsStore);
|
|
|
return;
|
|
@@ -233,6 +238,7 @@ export const handleMessageHook = async (payload, wsStore) => {
|
|
|
nickname: walletStore.username,
|
|
|
avatar: walletStore.avatar,
|
|
|
},
|
|
|
+ fromAvatar: message.avatar,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -246,6 +252,7 @@ export const handleMessageHook = async (payload, wsStore) => {
|
|
|
...message,
|
|
|
// toUsername: message.to,
|
|
|
align: 'left',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
}, msg));
|
|
|
notifications(wsStore);
|
|
|
return
|
|
@@ -262,6 +269,7 @@ export const handleMessageHook = async (payload, wsStore) => {
|
|
|
file: audioUrl,
|
|
|
// toUsername: message.to,
|
|
|
align: 'left',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
}, msg));
|
|
|
notifications(wsStore);
|
|
|
return
|
|
@@ -275,6 +283,7 @@ export const handleMessageHook = async (payload, wsStore) => {
|
|
|
file: url,
|
|
|
// toUsername: message.to,
|
|
|
align: 'left',
|
|
|
+ fromAvatar: message.avatar,
|
|
|
}, msg));
|
|
|
notifications(wsStore);
|
|
|
return
|