BugFix: I get sometimes typing notifications for myself #123

This commit is contained in:
giomfo 2016-03-14 11:34:01 +01:00
parent 225853767b
commit 7fb19bfb8e

View file

@ -1147,7 +1147,15 @@
}]; }];
currentTypingUsers = self.roomDataSource.room.typingUsers; // Retrieve the current typing users list
NSMutableArray *typingUsers = [NSMutableArray arrayWithArray:self.roomDataSource.room.typingUsers];
// Remove typing info for the current user
NSUInteger index = [typingUsers indexOfObject:self.mainSession.myUser.userId];
if (index != NSNotFound)
{
[typingUsers removeObjectAtIndex:index];
}
currentTypingUsers = typingUsers;
[self refreshActivitiesViewDisplay]; [self refreshActivitiesViewDisplay];
} }
} }