Signal-iOS/Signal
Evan Hahn b926e6be5e Check whether recipient is blocked before adding gift badge send job
If someone makes it to the confirmation screen with a blocked contact,
we should try to stop them. Specifically, we check for blocked state (1)
when the Apple Pay button is pressed (2) right before we add a gift
badge job.

Note that [the gift badge job already checks this][0], too—this is just
helpful for the UI.

Tested this by trying to send a gift to a blocked contact, and also
trying the "happy path" of sending a gift to someone I hadn't blocked.
Both worked as I expected.

[0]: 2a0ae59ce8/SignalMessaging/Donations/SendGiftBadgeJobQueue.swift (L163-L165)
2022-07-12 17:26:32 -05:00
..
AudioFiles
Images.xcassets Add gift wrap & animations 2022-07-12 13:16:11 -07:00
Lottie Adjust megaphone priority and remove old megaphones 2022-01-24 10:42:34 -08:00
NSE-Images.xcassets Cache built avatars to disk for NSE 2022-02-14 11:59:13 -08:00
Settings.bundle Upgrade GRDB to version 5.23.0 2022-04-20 09:08:50 -05:00
Sounds Autoplay subsequent audio messages 2021-04-29 18:01:21 -07:00
src Check whether recipient is blocked before adding gift badge send job 2022-07-12 17:26:32 -05:00
test Merge branch igor/media-editor-updates. 2022-07-06 14:54:26 -07:00
translations Check whether recipient is blocked before adding gift badge send job 2022-07-12 17:26:32 -05:00
.swiftlint.yml
iTunesArtwork@3x.png
main.m Call UIApplicationMain() outside of autoreleasepool 2021-04-08 13:35:17 -07:00
Signal-AppStore.entitlements iOS 15 communication notification support for messages 2021-08-17 10:48:39 -10:00
Signal-Info.plist "Bump build to 5.46.0.5." (nightly-07-12-2022) 2022-07-12 04:00:14 -07:00
Signal-Prefix.pch
Signal.entitlements iOS 15 communication notification support for messages 2021-08-17 10:48:39 -10:00
SignalTSan.supp
SignalUBSan.supp