fix(消息面板): 添加普通用户撤回消息的条件限制
当用户不是管理员时,只有在撤回时间限制内且消息是自己发送的情况下才显示撤回选项
This commit is contained in:
parent
4b5c160e94
commit
8e645226b8
@ -60,6 +60,11 @@ export function useMenu() {
|
||||
//管理员可以强制撤回所有成员信息
|
||||
if ((dialogueStore.groupInfo as any).is_manager) {
|
||||
dropdown.options.push({ label: `撤回`, key: 'revoke' })
|
||||
}else{
|
||||
//撤回时间限制内,并且是自己发的
|
||||
if(isRevoke(uid, item)&&item.float==='right'){
|
||||
dropdown.options.push({ label: `撤回`, key:'revoke' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user