Commit 19cc755a authored by Lucio Maciel's avatar Lucio Maciel

Use clean insert, so we don't keep old rooms locally

parent 4c9ae11a
......@@ -170,7 +170,7 @@ class DatabaseManager(val context: Application, val serverUrl: String) {
fun processRooms(rooms: List<ChatRoom>) {
launch(dbManagerContext) {
val entities = rooms.map { mapChatRoom(it) }
sendOperation(Operation.InsertRooms(entities))
sendOperation(Operation.CleanInsertRooms(entities))
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment