File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Adamant/Services/DataProviders Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,9 @@ extension AdamantTransfersProvider {
366
366
let context = NSManagedObjectContext ( concurrencyType: . privateQueueConcurrencyType)
367
367
context. parent = stack. container. viewContext
368
368
369
- guard let id = recipientAccount. chatroom? . objectID, let chatroom = context. object ( with: id) as? Chatroom else {
369
+ guard let id = recipientAccount. chatroom? . objectID,
370
+ let chatroom = context. object ( with: id) as? Chatroom ,
371
+ let partner = context. object ( with: recipientAccount. objectID) as? BaseAccount else {
370
372
completion ( . failure( . accountNotFound( address: recipient) ) )
371
373
return
372
374
}
@@ -384,6 +386,7 @@ extension AdamantTransfersProvider {
384
386
transaction. statusEnum = MessageStatus . pending
385
387
transaction. comment = comment
386
388
transaction. fee = transferFee as NSDecimalNumber
389
+ transaction. partner = partner
387
390
388
391
chatroom. addToTransactions ( transaction)
389
392
You can’t perform that action at this time.
0 commit comments