[API/Librus] Fix getting read date in messages for multiple receivers. (#154)

This commit is contained in:
B.O.S.S 2022-11-03 21:53:01 +01:00 committed by GitHub
parent 771dc437e6
commit d65c6db954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ class LibrusMessagesGetMessage(override val data: DataLibrus,
val receiverId = teacher?.id ?: -1
teacher?.loginId = receiverLoginId
val readDateText = message.select("readed").text()
val readDateText = receiver.select("readed").text()
val readDate = when (readDateText.isNotNullNorEmpty()) {
true -> Date.fromIso(readDateText)
else -> 0