Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Message thread does not reload on sometime. #3

Open
koolahmedkhan opened this issue May 27, 2015 · 0 comments
Open

Message thread does not reload on sometime. #3

koolahmedkhan opened this issue May 27, 2015 · 0 comments

Comments

@koolahmedkhan
Copy link

The mesage thread does not reload sometime. I figure out that in IMChatC.m the following code does not get called when user send or recieve any new message 👍
@weakify(self);
[self.viewModel.fetchLaterSignal subscribeNext:^(id x) {
@strongify(self);
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView reloadData];
if ([self isNearbyBottom]) {
[self scrollToBottomAnimated:YES];
}
});
}];

    [self.viewModel.fetchEarlierSignal subscribeNext:^(NSIndexPath *indexPath) {
        @strongify(self);
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.tableView reloadData];
            if (indexPath) {
                [self.tableView scrollToRowAtIndexPath:indexPath
                                      atScrollPosition:UITableViewScrollPositionTop animated:NO];
            }
            else {
                [self scrollToBottomAnimated:YES];
            }
        });
    }];

What should I do to handle it ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant