Invalid capability cache when storing signaling version

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Marcel Müller 2024-08-07 17:48:37 +02:00
Родитель 54493be97b
Коммит 6833d941f1
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -681,6 +681,9 @@ NSString * const NCDatabaseManagerRoomCapabilitiesChangedNotification = @"NCData
if (managedServerCapabilities && managedServerCapabilities.externalSignalingServerVersion != version) {
managedServerCapabilities.externalSignalingServerVersion = version;
ServerCapabilities *unmanagedServerCapabilities = [[ServerCapabilities alloc] initWithValue:managedServerCapabilities];
[self.capabilitiesCache setObject:unmanagedServerCapabilities forKey:accountId];
}
}];
}