mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Always try to delete a voicebroadcast with relations. The SDK will ensure the feature is supported.
This commit is contained in:
@@ -4303,12 +4303,9 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
[self startActivityIndicator];
|
||||
|
||||
NSArray<NSString *>* relationTypes = nil;
|
||||
// If it's a voice broadcast, delete the selected event and all related events (only if this feature is supported).
|
||||
// If it's a voice broadcast, delete the selected event and all related events.
|
||||
if (selectedEvent.eventType == MXEventTypeCustom && [selectedEvent.type isEqualToString:VoiceBroadcastSettings.voiceBroadcastInfoContentKeyType]) {
|
||||
// Check if the homeserver supports redaction with relations
|
||||
if (self.mainSession.store.supportedMatrixVersions.supportsRedactionWithRelations || self.mainSession.store.supportedMatrixVersions.supportsRedactionWithRelationsUnstable) {
|
||||
relationTypes = @[MXEventRelationTypeReference];
|
||||
}
|
||||
relationTypes = @[MXEventRelationTypeReference];
|
||||
}
|
||||
|
||||
MXWeakify(self);
|
||||
|
||||
Reference in New Issue
Block a user