Event timeline: Made usage of MXEventTimeline

This commit is contained in:
manuroe
2016-02-22 18:07:30 +01:00
parent 27b2637ce4
commit fb6d8b68f0
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1074,7 +1074,7 @@
// Remove the previous live listener
if (typingNotifListener)
{
[self.roomDataSource.room removeListener:typingNotifListener];
[self.roomDataSource.room.liveTimeLine removeListener:typingNotifListener];
currentTypingUsers = nil;
}
}
@@ -1085,7 +1085,7 @@
if (self.roomDataSource)
{
// Add typing notification listener
typingNotifListener = [self.roomDataSource.room listenToEventsOfTypes:@[kMXEventTypeStringTypingNotification] onEvent:^(MXEvent *event, MXEventDirection direction, MXRoomState *roomState) {
typingNotifListener = [self.roomDataSource.room.liveTimeLine listenToEventsOfTypes:@[kMXEventTypeStringTypingNotification] onEvent:^(MXEvent *event, MXEventDirection direction, MXRoomState *roomState) {
// Handle only live events
if (direction == MXEventDirectionForwards)