mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
minor fix after merging
This commit is contained in:
parent
80fa37e1a7
commit
2dcbcee66c
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ interface StorageProtocol {
|
||||||
fun getReceivedMessageTimestamps(): Set<Long>
|
fun getReceivedMessageTimestamps(): Set<Long>
|
||||||
fun addReceivedMessageTimestamp(timestamp: Long)
|
fun addReceivedMessageTimestamp(timestamp: Long)
|
||||||
// Returns the IDs of the saved attachments.
|
// 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 insertMessageOutbox(message: Message)
|
||||||
fun insertMessageInbox(message: Message)
|
fun insertMessageInbox(message: Message)
|
||||||
fun setErrorMessage(message: Message, error: Exception)
|
fun setErrorMessage(message: Message, error: Exception)
|
||||||
|
|
|
@ -91,7 +91,7 @@ fun MessageReceiver.handleVisibleMessage(message: VisibleMessage, proto: SignalS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val attachmentIDs = storage.persist(attachments)
|
val attachmentIDs = storage.persist(attachments)
|
||||||
message.attachmentIDs = attachmentIDs as ArrayList<String>
|
message.attachmentIDs = attachmentIDs as ArrayList<Long>
|
||||||
var attachmentsToDownload = attachmentIDs
|
var attachmentsToDownload = attachmentIDs
|
||||||
// Update profile if needed
|
// Update profile if needed
|
||||||
val newProfile = message.profile
|
val newProfile = message.profile
|
||||||
|
|
Loading…
Reference in a new issue