fix docker for tauri app
This commit is contained in:
@@ -340,7 +340,7 @@ export function FamilyGroupView({ groupId }: { groupId: string }) {
|
||||
const myMembership = activeRoom?.members.find((member) => member.userId === user?.id);
|
||||
const isFamilyOwner = group?.ownerId === user?.id;
|
||||
const isChatCreator = activeRoom?.createdById === user?.id;
|
||||
const canManageChatMembers = Boolean(isFamilyOwner || isChatCreator);
|
||||
const canManageChatMembers = Boolean(isFamilyOwner || isChatCreator || activeRoomIsBot);
|
||||
const canManageActiveBot = Boolean(
|
||||
activeRoomIsBot && botChatMeta?.manageWebAppUrl && user?.id && botChatMeta.botOwnerId === user.id
|
||||
);
|
||||
@@ -1518,6 +1518,7 @@ export function FamilyGroupView({ groupId }: { groupId: string }) {
|
||||
botRef={activeRoom.botUsername}
|
||||
botName={activeRoomTitle}
|
||||
token={token}
|
||||
roomId={activeRoom.id}
|
||||
onBotMetaChange={setBotChatMeta}
|
||||
onOpenMiniApp={(url) => {
|
||||
setMiniAppTitle('Mini App');
|
||||
@@ -2142,8 +2143,9 @@ export function FamilyGroupView({ groupId }: { groupId: string }) {
|
||||
const presence = presenceByUserId.get(member.userId);
|
||||
const canRemoveFromChat =
|
||||
canManageChatMembers &&
|
||||
activeRoom.type === 'GROUP' &&
|
||||
(activeRoom.type === 'GROUP' || activeRoom.type === 'BOT') &&
|
||||
member.userId !== user?.id &&
|
||||
member.userId !== activeRoom.peerUserId &&
|
||||
!(member.isChatCreator && !isFamilyOwner);
|
||||
const canRemoveFromFamily = isFamilyOwner && member.familyRole !== 'owner' && familyMember;
|
||||
|
||||
@@ -2183,7 +2185,7 @@ export function FamilyGroupView({ groupId }: { groupId: string }) {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
{activeRoom?.type === 'GROUP' && familyMembersNotInRoom.length > 0 ? (
|
||||
{(activeRoom?.type === 'GROUP' || activeRoom?.type === 'BOT') && familyMembersNotInRoom.length > 0 ? (
|
||||
<Button className="mt-4 w-full rounded-xl" onClick={() => {
|
||||
setMembersOpen(false);
|
||||
setAddMembersOpen(true);
|
||||
|
||||
Reference in New Issue
Block a user