mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
Replace check on unassigned var with NSURLErrorCancelled
This commit is contained in:
@@ -299,7 +299,7 @@ static NSString *const kNSFWKeyword = @"nsfw";
|
||||
{
|
||||
typeof(self) self = weakSelf;
|
||||
|
||||
if (!newPublicRoomsRequest || newPublicRoomsRequest.isCancelled)
|
||||
if (error.domain == NSURLErrorDomain && error.code == NSURLErrorCancelled)
|
||||
{
|
||||
// Do not take into account error coming from a cancellation
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user