Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-iphoneos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2014-03-12 03:34:28 +0400
committerMikkel Krautz <mikkel@krautz.dk>2014-03-12 03:34:28 +0400
commit6b072c3d57f72bc84253d0fb3a4e03d7e43f3b10 (patch)
treeea53f6c3b102a76ad4f7442686454a237eae553b /Source
parent190bffb22cccc76fabb3130797ab088045b4716a (diff)
MUMessageRecipientViewController: fix off-by-one error caused by manual user index calculation.
Diffstat (limited to 'Source')
-rw-r--r--Source/Classes/MUMessageRecipientViewController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Classes/MUMessageRecipientViewController.m b/Source/Classes/MUMessageRecipientViewController.m
index 8e74b8c..ca5461c 100644
--- a/Source/Classes/MUMessageRecipientViewController.m
+++ b/Source/Classes/MUMessageRecipientViewController.m
@@ -267,7 +267,7 @@
}
- (void) serverModel:(MKServerModel *)model userTalkStateChanged:(MKUser *)user {
- NSInteger userIndex = [[_userIndexMap objectForKey:[NSNumber numberWithInt:[user session]]] integerValue];
+ NSInteger userIndex = [self indexForUser:user];
UITableViewCell *cell = [[self tableView] cellForRowAtIndexPath:[NSIndexPath indexPathForRow:userIndex inSection:0]];
MKTalkState talkState = [user talkState];