fix: updates

This commit is contained in:
Tristan Yang
2024-09-13 10:33:31 +08:00
parent b2fe399ce5
commit ecebbca0a1
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "vocechat-web",
"version": "0.7.33",
"version": "0.7.35",
"homepage": "https://voce.chat",
"dependencies": {
"@metamask/onboarding": "^1.0.1",
+1 -1
View File
@@ -44,7 +44,7 @@
"add_friend": "Add friend",
"dm_to_member": "DM to Member",
"show_email": "Show Email",
"only_owner": "Only Owner Can Send Message"
"only_owner": "Only Owner and Admin Can Send Message"
},
"dm": {
"delete": "Delete User",
+1 -1
View File
@@ -44,7 +44,7 @@
"add_friend": "允许加好友",
"dm_to_member": "允许私聊",
"show_email": "显示邮箱",
"only_owner": "仅创建者可发消息"
"only_owner": "仅创建者和管理员可发消息"
},
"overview": {
"title_feat": "特性开关",
+1 -1
View File
@@ -144,7 +144,7 @@ const useUserOperation = ({ uid, cid }: IProps) => {
const canRemoveFromContact: boolean = loginUid != uid;
const canInviteChannel = !!cid && (loginUser?.is_admin || channel?.owner == loginUser?.uid);
return {
isChannelOwner: loginUser?.uid == channel?.owner,
isChannelOwner: loginUser?.uid == channel?.owner || (channel?.is_public && isAdmin),
isAdmin,
updateRole,
canUpdateRole: isAdmin && loginUid != uid && uid != 1,