feat: disable room retention feature (MESSENGER-6076)

This commit is contained in:
JanNiklas Grabowski
2024-08-26 11:38:03 +02:00
parent 8cc139b57b
commit 14b13835a8
2 changed files with 7 additions and 3 deletions
@@ -178,7 +178,8 @@ const CGFloat kTypingCellHeight = 24;
if (delegate && self.isLive)
{
if (self.room)
// BWI: #6076 the retention should be handled by the server, it is not necessary to filter messages locally on room level
if (self.room && BWIBuildSettings.shared.enableRoomRetention)
{
// Remove the potential expired messages from the store
if ([self.room.summary removeExpiredRoomContentsFromStore])