Fix missed case

This commit is contained in:
nielsandriesse 2020-06-23 11:51:26 +10:00
parent 51a7bc0383
commit 28f066b059
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
[self.primaryStorage.dbReadConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
publicChat = [LKDatabaseUtilities getPublicChatForThreadID:groupThread.uniqueId transaction: transaction];
}];
if (publicChat == nil) return false;
if (publicChat == nil) return true;
if (interationType == OWSInteractionType_IncomingMessage) {
// Only allow deletion on incoming messages if the user has moderation permission