From 192533677f6df9548a88001a59def89b0e6d1c35 Mon Sep 17 00:00:00 2001 From: PatrykBuniX Date: Fri, 12 Jan 2024 12:17:54 +0100 Subject: [PATCH] runfix: do not open a conversation with blocked user --- src/script/view_model/ContentViewModel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/view_model/ContentViewModel.ts b/src/script/view_model/ContentViewModel.ts index 876bebbbf80..b234aa499cb 100644 --- a/src/script/view_model/ContentViewModel.ts +++ b/src/script/view_model/ContentViewModel.ts @@ -249,8 +249,9 @@ export class ContentViewModel { try { const conversationEntity = await this.getConversationEntity(conversation, domain); + const isConnectionBlocked = conversationEntity?.connection()?.isBlocked(); - if (!conversationEntity) { + if (!conversationEntity || isConnectionBlocked) { this.closeRightSidebar(); throw new ConversationError( ConversationError.TYPE.CONVERSATION_NOT_FOUND,