forked from github/szkolny
[API/Librus] Disable Messages login when downloading homework attachment.
This commit is contained in:
parent
b790421693
commit
f6dcbb6594
@ -122,20 +122,22 @@ class Librus(val app: App, val profile: Profile?, val loginStore: LoginStore, va
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getAttachment(owner: Any, attachmentId: Long, attachmentName: String) {
|
override fun getAttachment(owner: Any, attachmentId: Long, attachmentName: String) {
|
||||||
login(LOGIN_METHOD_LIBRUS_MESSAGES) {
|
when (owner) {
|
||||||
when (owner) {
|
is Message -> {
|
||||||
is Message -> {
|
login(LOGIN_METHOD_LIBRUS_MESSAGES) {
|
||||||
LibrusMessagesGetAttachment(data, owner, attachmentId, attachmentName) {
|
LibrusMessagesGetAttachment(data, owner, attachmentId, attachmentName) {
|
||||||
completed()
|
completed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is EventFull -> {
|
}
|
||||||
|
is EventFull -> {
|
||||||
|
login(LOGIN_METHOD_LIBRUS_SYNERGIA) {
|
||||||
LibrusSynergiaHomeworkGetAttachment(data, owner, attachmentId, attachmentName) {
|
LibrusSynergiaHomeworkGetAttachment(data, owner, attachmentId, attachmentName) {
|
||||||
completed()
|
completed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> completed()
|
|
||||||
}
|
}
|
||||||
|
else -> completed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user