Flush logs before submitting logs.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-02-14 10:35:24 -05:00
parent dfcfbe7022
commit dde8132f0e

View File

@ -184,6 +184,7 @@ typedef NS_ENUM(NSInteger, AdvancedSettingsTableViewControllerSection) {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if ([tableView cellForRowAtIndexPath:indexPath] == self.submitLogCell) {
[DDLog flushLog];
[Pastelog submitLogs];
} else if ([tableView cellForRowAtIndexPath:indexPath] == self.registerPushCell) {
OWSSyncPushTokensJob *syncJob =