Fix getMessageSender args order

This commit is contained in:
Mikołaj Pich 2019-03-03 21:49:43 +01:00
parent 05114471bc
commit 32391439ad
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -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> {