File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,23 +28,6 @@ func UpdateBadgeCount(
2828 "owner" : owner .PublicKey ().ToBase58 (),
2929 })
3030
31- verificationRecord , err := data .GetLatestPhoneVerificationForAccount (ctx , owner .PublicKey ().ToBase58 ())
32- if err != nil {
33- return errors .Wrap (err , "error getting phone verification record" )
34- }
35- log = log .WithField ("phone_number" , verificationRecord .PhoneNumber )
36-
37- // Gate badge counts to internal staff users. This can't be enabled more
38- // broadly until threaded transactions is released publicly with badge
39- // count support.
40- userIdentityRecord , err := data .GetUserByPhoneView (ctx , verificationRecord .PhoneNumber )
41- if err != nil {
42- log .WithError (err ).Warn ("failure getting user identity record" )
43- return err
44- } else if ! userIdentityRecord .IsStaffUser {
45- return nil
46- }
47-
4831 // todo: Propagate this logic to other push sending utilities once login
4932 // detection is made public.
5033 loginRecord , err := data .GetLatestLoginByOwner (ctx , owner .PublicKey ().ToBase58 ())
You can’t perform that action at this time.
0 commit comments