Skip to content

Commit

Permalink
Groups: Display flair for users in room history.
Browse files Browse the repository at this point in the history
Fix Manu's remarks

element-hq/riot-meta#118
  • Loading branch information
giomfo committed Feb 5, 2018
1 parent b3f16d4 commit 2242019
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MatrixSDK/MXSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,8 @@ typedef void (^MXOnBackgroundSyncFail)(NSError *error);
value and triggers a server request to retrieve the actual publicised groups of this user.
Listen to `kMXSessionDidUpdatePublicisedGroupsForUsersNotification` to be notified in case of update.
There is no new request if there is already one in progress for the provided userId.
@param userId the user identifiers.
@return the current publicised groups for the provided user.
*/
Expand Down
11 changes: 10 additions & 1 deletion MatrixSDK/MXSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -3111,7 +3111,16 @@ - (void)markOutdatedPublicisedGroupsByUserData
}


} failure:nil];
} failure:^(NSError *error) {

// We should trigger a new request for this user if his publicised groups are requested again.
if (!userIdsWithOutdatedPublicisedGroups)
{
userIdsWithOutdatedPublicisedGroups = [NSMutableArray array];
}
[userIdsWithOutdatedPublicisedGroups addObject:userId];

}];
}
}

Expand Down

0 comments on commit 2242019

Please sign in to comment.