MESSENGER 5004 add oidc flag

This commit is contained in:
JanNiklas Grabowski
2023-08-31 12:13:03 +02:00
parent 7c01638c81
commit d4ab5f4bad
4 changed files with 8 additions and 4 deletions
@@ -678,7 +678,8 @@ enum {
- (void)removeDevice
{
MXWellKnownAuthentication *authentication = self.mainSession.homeserverWellknown.authentication;
if (authentication)
if (BWIBuildSettings.shared.isOIDCEnabled &&
authentication)
{
NSURL *logoutURL = [authentication getLogoutDeviceURLFromID:device.deviceId];
if (logoutURL)