update home screen immediately

This commit is contained in:
Ryan ZHAO 2021-05-13 14:25:09 +10:00
parent 85eff702c3
commit 22b4ca2a27

View File

@ -64,6 +64,7 @@ class SessionContactDatabase(context: Context, helper: SQLCipherOpenHelper) : Da
contentValues.put(threadID, threadID) contentValues.put(threadID, threadID)
contentValues.put(isTrusted, if (contact.isTrusted) 1 else 0) contentValues.put(isTrusted, if (contact.isTrusted) 1 else 0)
database.insertOrUpdate(sessionContactTable, contentValues, "$sessionID = ?", arrayOf(contact.sessionID)) database.insertOrUpdate(sessionContactTable, contentValues, "$sessionID = ?", arrayOf(contact.sessionID))
notifyConversationListListeners()
} }
private fun contactFromCursor(cursor: Cursor): Contact { private fun contactFromCursor(cursor: Cursor): Contact {