|
|
@ -30,6 +30,7 @@ extension Storage {
|
|
|
|
guard let thread = threadOrNil else { return nil }
|
|
|
|
guard let thread = threadOrNil else { return nil }
|
|
|
|
let message = TSIncomingMessage.from(message, associatedWith: thread)
|
|
|
|
let message = TSIncomingMessage.from(message, associatedWith: thread)
|
|
|
|
message.save(with: transaction)
|
|
|
|
message.save(with: transaction)
|
|
|
|
|
|
|
|
DispatchQueue.main.async { message.touch() } // FIXME: Hack for a thread updating issue
|
|
|
|
return (thread.uniqueId!, message.uniqueId!)
|
|
|
|
return (thread.uniqueId!, message.uniqueId!)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -59,3 +60,4 @@ extension Storage {
|
|
|
|
tsIncomingMessage.touch(with: transaction)
|
|
|
|
tsIncomingMessage.touch(with: transaction)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|