Skip to content

Commit

Permalink
Merge pull request residentsummer#7 from Felizolinha/master
Browse files Browse the repository at this point in the history
fixed isAdmin NULL Exception
  • Loading branch information
residentsummer authored Feb 23, 2018
2 parents bd88e1f + 36792e4 commit cb9faf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion watoi/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ - (NSManagedObject *) addMissingMember:(NSString *)memberJID toChat:(NSString *)
NSManagedObject *chat = [self.chats objectForKey:chatJID];

[member setValue:memberJID forKey:@"memberJID"];
[member setValue:isAdmin forKey:@"isAdmin"];
if (![isAdmin isKindOfClass:[NSNull class]]) {
[member setValue:isAdmin forKey:@"isAdmin"];
}
// Active members were loaded from backup
[member setValue:@NO forKey:@"isActive"];

Expand Down

0 comments on commit cb9faf6

Please sign in to comment.