mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Fix thumbnail info generation bug in notifications.
This commit is contained in:
@@ -266,13 +266,15 @@ class MessageNotification(threadRecipient: Recipient, record: MessageRecord) : N
|
||||
}
|
||||
|
||||
override fun getThumbnailInfo(context: Context): ThumbnailInfo {
|
||||
if (thumbnailInfo.needsShrinking) {
|
||||
if (SignalStore.settings().messageNotificationsPrivacy.isDisplayMessage && !KeyCachingService.isLocked(context)) {
|
||||
return if (SignalStore.settings().messageNotificationsPrivacy.isDisplayMessage && !KeyCachingService.isLocked(context)) {
|
||||
if (thumbnailInfo.needsShrinking) {
|
||||
thumbnailInfo = NotificationThumbnails.get(context, this)
|
||||
}
|
||||
}
|
||||
|
||||
return thumbnailInfo
|
||||
thumbnailInfo
|
||||
} else {
|
||||
ThumbnailInfo.NONE
|
||||
}
|
||||
}
|
||||
|
||||
override fun canReply(context: Context): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user