Fix getMessageSender args order
This commit is contained in:
parent
05114471bc
commit
32391439ad
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class MessagesRepository(private val api: MessagesService) {
|
|||
|
||||
fun getMessageRecipients(messageId: Int, loginId: Int): Single<List<Recipient>> {
|
||||
return (if (0 == loginId) api.getMessageRecipients(messageId)
|
||||
else api.getMessageSender(messageId, loginId)).map { it.data }
|
||||
else api.getMessageSender(loginId, messageId)).map { it.data }
|
||||
}
|
||||
|
||||
fun getMessage(messageId: Int, folderId: Int, read: Boolean, id: Int?): Single<String> {
|
||||
|
|
Loading…
Reference in a new issue