mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
make use of Obj-C's modern syntax for literals and subscripting
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
if (identifiers.count)
|
||||
{
|
||||
// Here the contact can only have one identifier
|
||||
[contactsDataSource.ignoredContactsByMatrixId setObject:contact forKey:identifiers.firstObject];
|
||||
contactsDataSource.ignoredContactsByMatrixId[identifiers.firstObject] = contact;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -266,7 +266,7 @@
|
||||
{
|
||||
// Here the contact can only have one email
|
||||
MXKEmail *email = emails.firstObject;
|
||||
[contactsDataSource.ignoredContactsByEmail setObject:contact forKey:email.emailAddress];
|
||||
contactsDataSource.ignoredContactsByEmail[email.emailAddress] = contact;
|
||||
}
|
||||
}
|
||||
isMultiUseNameByDisplayName[contact.displayName] = (isMultiUseNameByDisplayName[contact.displayName] ? @(YES) : @(NO));
|
||||
@@ -274,7 +274,7 @@
|
||||
|
||||
if (userContact)
|
||||
{
|
||||
[contactsDataSource.ignoredContactsByMatrixId setObject:userContact forKey:self.mainSession.myUser.userId];
|
||||
contactsDataSource.ignoredContactsByMatrixId[self.mainSession.myUser.userId] = userContact;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user