This commit is contained in:
2022-12-28 10:08:51 +08:00
parent 0fa93d545e
commit 3881370b6e
151 changed files with 17044 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import Base from './base'
import store from '@/store'
/**
* 好友邀请消息处理
*/
class Revoke extends Base {
/**
* @var resource 资源
*/
resource
/**
* 初始化构造方法
*
* @param {Object} resource Socket消息
*/
constructor(resource) {
super()
this.resource = resource
}
handle() {
if (
!this.isTalk(
this.resource.talk_type,
this.resource.receiver_id,
this.resource.sender_id
)
) {
return false
}
store.commit('UPDATE_DIALOGUE', {
id: this.resource.record_id,
is_revoke: 1,
})
}
}
export default Revoke