Revision 8358d691 ChatSecure/Classes/View Controllers/OTRMessagesViewController.m
| ChatSecure/Classes/View Controllers/OTRMessagesViewController.m | ||
|---|---|---|
| 223 | 223 |
[self scrollToBottomAnimated:animated]; |
| 224 | 224 |
}); |
| 225 | 225 |
self.loadingMessages = NO; |
| 226 |
[self fetchMessageHistory]; |
|
| 227 | 226 |
} |
| 228 | 227 |
|
| 229 | 228 |
- (void)viewWillAppear:(BOOL)animated |
| ... | ... | |
| 323 | 322 |
|
| 324 | 323 |
#pragma - mark Setters & getters |
| 325 | 324 |
|
| 326 |
- (void) fetchMessageHistory {
|
|
| 327 |
[self.readOnlyDatabaseConnection asyncReadWithBlock:^(YapDatabaseReadTransaction * _Nonnull transaction) {
|
|
| 328 |
id<OTRThreadOwner> thread = [self threadObjectWithTransaction:transaction]; |
|
| 329 |
OTRXMPPManager *xmpp = [self xmppManagerWithTransaction:transaction]; |
|
| 330 |
[xmpp fetchHistoryForThread:thread transaction:transaction]; |
|
| 331 |
}]; |
|
| 332 |
} |
|
| 333 |
|
|
| 334 | 325 |
- (OTRAttachmentPicker *)attachmentPicker |
| 335 | 326 |
{
|
| 336 | 327 |
if (!_attachmentPicker) {
|
Also available in: Unified diff