This commit is contained in:
lanzhihui 2024-11-22 17:01:35 +08:00
parent d593f0b469
commit 0654e1254f

View File

@ -1055,6 +1055,9 @@ wepy.page({
// 在当前页面接收到别人发送过来的消息 // 在当前页面接收到别人发送过来的消息
reception(e) { reception(e) {
let vm = this let vm = this
if (e.to != vm.otherUserId) {
return
}
vm.sendMsgReceipt(e) vm.sendMsgReceipt(e)
if (e.type == 'text' && /\[[^\]]+\]/.test(e.body)) { if (e.type == 'text' && /\[[^\]]+\]/.test(e.body)) {
e.body = vm.transitionMsg(e.body) e.body = vm.transitionMsg(e.body)