minor fix after merging

This commit is contained in:
Ryan ZHAO 2020-12-18 16:59:37 +11:00
parent 80fa37e1a7
commit 2dcbcee66c
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ interface StorageProtocol {
fun getReceivedMessageTimestamps(): Set<Long>
fun addReceivedMessageTimestamp(timestamp: Long)
// Returns the IDs of the saved attachments.
fun persist(attachments: List<Attachment>): List<String>
fun persist(attachments: List<Attachment>): List<Long>
fun insertMessageOutbox(message: Message)
fun insertMessageInbox(message: Message)
fun setErrorMessage(message: Message, error: Exception)

View file

@ -91,7 +91,7 @@ fun MessageReceiver.handleVisibleMessage(message: VisibleMessage, proto: SignalS
}
}
val attachmentIDs = storage.persist(attachments)
message.attachmentIDs = attachmentIDs as ArrayList<String>
message.attachmentIDs = attachmentIDs as ArrayList<Long>
var attachmentsToDownload = attachmentIDs
// Update profile if needed
val newProfile = message.profile