- Show red messages icon when unread messages exist

This commit is contained in:
Juha Heinanen
2019-04-20 14:42:51 +03:00
parent d3a8e2df41
commit bedcaa52f0
6 changed files with 37 additions and 10 deletions
@@ -543,6 +543,8 @@ class BaresipService: Service() {
Log.d(LOG_TAG, "Message event for $uap from $peer at $timeStamp")
Message.add(Message(ua.account.aor, peer, text, timeStamp.toLong(),
R.drawable.arrow_down_green, 0, "", true))
Message.saveMessages(filesPath)
ua.account.unreadMessages = true
if (!Utils.isVisible()) {
val intent = Intent(this, BaresipService::class.java)
intent.action = "Message Show"