mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix benchmark test.
This commit is contained in:
@@ -59,11 +59,11 @@ object TestMessages {
|
||||
null
|
||||
)
|
||||
if (timestamp != null) {
|
||||
TestDbUtils.setMessageReceived(insert, timestamp)
|
||||
TestDbUtils.setMessageReceived(insert.messageId, timestamp)
|
||||
}
|
||||
SignalDatabase.messages.markAsSent(insert, true)
|
||||
SignalDatabase.messages.markAsSent(insert.messageId, true)
|
||||
|
||||
return insert
|
||||
return insert.messageId
|
||||
}
|
||||
fun insertIncomingTextMessage(other: Recipient, body: String, timestamp: Long? = null) {
|
||||
val message = IncomingMessage(
|
||||
|
||||
Reference in New Issue
Block a user