From c6be28909296147091d30057ad537f63f17acad4 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Fri, 7 Feb 2020 15:53:40 +1100 Subject: [PATCH] Fix leaving closed groups --- js/models/conversations.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 7471c5798..bdadd6a9b 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -221,9 +221,7 @@ return !!(this.id && this.id.match(/^publicChat:/)); }, isClosedGroup() { - return ( - this.get('type') === Message.GROUP && !this.isPublic() && !this.isRss() - ); + return this.get('type') === Message.GROUP && !this.isPublic() && !this.isRss(); }, isClosable() { return !this.isRss() || this.get('closable');