Skip to content

Commit

Permalink
Use isFederated
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Müller <[email protected]>
Signed-off-by: Ivan Sein <[email protected]>
  • Loading branch information
Ivansss and SystemKeeper authored Mar 1, 2024
1 parent ecdc24f commit 494f343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NextcloudTalk/NCRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ + (instancetype)roomWithDictionary:(NSDictionary *)roomDict
}

// Last message proxied (only for Federated rooms)
if (room.remoteToken.length > 0 && room.remoteServer.length > 0 && room.remoteAccessToken > 0) {
if ([room isFederated]) {
id lastMessageProxied = [roomDict objectForKey:@"lastMessage"];
if ([lastMessageProxied isKindOfClass:[NSDictionary class]]) {
NSError *error;
Expand Down

0 comments on commit 494f343

Please sign in to comment.