|
|
|
@ -83,7 +83,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
quotedMessage:[quotedReplyModel buildQuotedMessageForSending]];
|
|
|
|
|
|
|
|
|
|
[BenchManager benchAsyncWithTitle:@"Saving outgoing message" block:^(void (^benchmarkCompletion)(void)) {
|
|
|
|
|
// To avoid blocking the send flow, we disapatch an async write from within this read transaction
|
|
|
|
|
// To avoid blocking the send flow, we dispatch an async write from within this read transaction
|
|
|
|
|
[self.dbConnection asyncReadWriteWithBlock:^(YapDatabaseReadWriteTransaction * _Nonnull writeTransaction) {
|
|
|
|
|
[message saveWithTransaction:writeTransaction];
|
|
|
|
|
[self.messageSenderJobQueue addMessage:message transaction:writeTransaction];
|
|
|
|
|