mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-03 15:11:42 +01:00
When remote backup storage is full, hundreds of CopyAttachmentToArchiveJob instances each independently call markOutOfRemoteStorageSpaceError(), which re-posts the notification every time. Even though the notification ID is the same, each call re-alerts the user with sound and vibration. Guard markOutOfRemoteStorageSpaceError() to only post the notification once by checking the flag before proceeding, and move the flag-set before the notification post to prevent races. Also add an early exit in CopyAttachmentToArchiveJob to skip the network quota check when already marked as out of storage space.