Show notification if message failed to send

This commit is contained in:
Moez Bhatti
2018-02-12 23:21:44 -05:00
parent c6afd7aec8
commit ce8f01b707
5 changed files with 47 additions and 1 deletions
@@ -142,6 +142,13 @@ class MessageRepository @Inject constructor(
.findAll()
}
fun getMessage(id: Long): Message? {
return Realm.getDefaultInstance()
.where(Message::class.java)
.equalTo("id", id)
.findFirst()
}
/**
* Retrieves the list of messages which should be shown in the notification
* for a given conversation