Clean up ahead of PR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 22fc69bbb4
commit 226a975859

@ -1096,7 +1096,6 @@ typedef enum : NSUInteger {
userInfo:nil userInfo:nil
repeats:NO]; repeats:NO];
// TODO: Why are we marking as read here? Shouldn't our repeating 1-sec read timer be sufficient?
[self markVisibleMessagesAsRead]; [self markVisibleMessagesAsRead];
} }
@ -1306,7 +1305,7 @@ typedef enum : NSUInteger {
- (void)startReadTimer - (void)startReadTimer
{ {
[self.readTimer invalidate]; [self.readTimer invalidate];
self.readTimer = [NSTimer weakScheduledTimerWithTimeInterval:2 self.readTimer = [NSTimer weakScheduledTimerWithTimeInterval:3.f
target:self target:self
selector:@selector(readTimerDidFire) selector:@selector(readTimerDidFire)
userInfo:nil userInfo:nil
@ -1361,6 +1360,7 @@ typedef enum : NSUInteger {
[self cancelReadTimer]; [self cancelReadTimer];
[self saveDraft]; [self saveDraft];
[self markVisibleMessagesAsRead];
[self cancelVoiceMemo]; [self cancelVoiceMemo];
@ -3528,7 +3528,7 @@ typedef enum : NSUInteger {
if (self.isGroupConversation) { if (self.isGroupConversation) {
[self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
TSGroupThread *gThread = (TSGroupThread *)self.thread; TSGroupThread *gThread = (TSGroupThread *)self.thread;
if (gThread.groupModel) { if (gThread.groupModel) {
self.thread = [TSGroupThread threadWithGroupModel:gThread.groupModel transaction:transaction]; self.thread = [TSGroupThread threadWithGroupModel:gThread.groupModel transaction:transaction];
} }

Loading…
Cancel
Save