make sure the conversation are properly refreshed when open
This commit is contained in:
parent
2db6ffb835
commit
e8a53d06c1
1 changed files with 4 additions and 3 deletions
|
|
@ -44,13 +44,14 @@ class SmsReceiver : BroadcastReceiver() {
|
||||||
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
|
context.updateUnreadCountBadge(context.conversationsDB.getUnreadConversations())
|
||||||
|
|
||||||
val participant = SimpleContact(0, 0, address, "", arrayListOf(address), ArrayList(), ArrayList())
|
val participant = SimpleContact(0, 0, address, "", arrayListOf(address), ArrayList(), ArrayList())
|
||||||
val message = Message(newMessageId, body, type, arrayListOf(participant), (date / 1000).toInt(), false, threadId,
|
val participants = arrayListOf(participant)
|
||||||
false, null, address, "", subscriptionId)
|
val messageDate = (date / 1000).toInt()
|
||||||
|
val message = Message(newMessageId, body, type, participants, messageDate, false, threadId, false, null, address, "", subscriptionId)
|
||||||
context.messagesDB.insertOrUpdate(message)
|
context.messagesDB.insertOrUpdate(message)
|
||||||
|
refreshMessages()
|
||||||
}
|
}
|
||||||
|
|
||||||
context.showReceivedMessageNotification(address, body, threadId, null)
|
context.showReceivedMessageNotification(address, body, threadId, null)
|
||||||
refreshMessages()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue