mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-19 08:02:26 +00:00
Merge remote-tracking branch 'origin/libsession-integration' into libsession-integration
This commit is contained in:
@@ -18,7 +18,12 @@ class GroupAvatarDownloadJob(val server: String, val room: String, val imageId:
|
||||
return
|
||||
}
|
||||
val storage = MessagingModuleConfiguration.shared.storage
|
||||
val storedImageId = storage.getOpenGroup(room, server)?.imageId
|
||||
val openGroup = storage.getOpenGroup(room, server)
|
||||
if (openGroup == null) {
|
||||
delegate?.handleJobFailedPermanently(this, dispatcherName, Exception("GroupAvatarDownloadJob openGroup is null"))
|
||||
return
|
||||
}
|
||||
val storedImageId = openGroup.imageId
|
||||
|
||||
if (storedImageId == null || storedImageId != imageId) {
|
||||
delegate?.handleJobFailedPermanently(this, dispatcherName, Exception("GroupAvatarDownloadJob imageId does not match the OpenGroup"))
|
||||
|
Reference in New Issue
Block a user