mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Update for core changes
This commit is contained in:
parent
3f24f8753a
commit
c5e4a2255c
@ -77,9 +77,9 @@ class LokiGroupChatPoller(private val context: Context, private val groupID: Lon
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun pollForDeletedMessages() {
|
private fun pollForDeletedMessages() {
|
||||||
api.getMessages(groupID, 0).success { messages ->
|
api.getDeletedMessageIDs(groupID, 0).success { deletedMessageServerIDs ->
|
||||||
val lokiMessageDatabase = DatabaseFactory.getLokiMessageDatabase(context)
|
val lokiMessageDatabase = DatabaseFactory.getLokiMessageDatabase(context)
|
||||||
val deletedMessageIDs = messages.filter { it.isDeleted }.mapNotNull { it.serverID }.mapNotNull { lokiMessageDatabase.getMessageID(it) }
|
val deletedMessageIDs = deletedMessageServerIDs.mapNotNull { lokiMessageDatabase.getMessageID(it) }
|
||||||
val smsMessageDatabase = DatabaseFactory.getSmsDatabase(context)
|
val smsMessageDatabase = DatabaseFactory.getSmsDatabase(context)
|
||||||
val mmsMessageDatabase = DatabaseFactory.getMmsDatabase(context)
|
val mmsMessageDatabase = DatabaseFactory.getMmsDatabase(context)
|
||||||
deletedMessageIDs.forEach {
|
deletedMessageIDs.forEach {
|
||||||
|
Loading…
Reference in New Issue
Block a user