fix: open group avatar loop for open groups we have left

This commit is contained in:
0x330a
2023-05-23 15:30:40 +10:00
parent f91fc2503b
commit 1781d7e85f
4 changed files with 8 additions and 17 deletions

View File

@@ -20,7 +20,7 @@ class GroupAvatarDownloadJob(val server: String, val room: String, val imageId:
}
val storage = MessagingModuleConfiguration.shared.storage
val openGroup = storage.getOpenGroup(room, server)
if (openGroup == null) {
if (openGroup == null || storage.getThreadId(openGroup) == null) {
delegate?.handleJobFailedPermanently(this, dispatcherName, Exception("GroupAvatarDownloadJob openGroup is null"))
return
}