File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,6 @@ func UpdateBadgeCount(
28
28
"owner" : owner .PublicKey ().ToBase58 (),
29
29
})
30
30
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
-
48
31
// todo: Propagate this logic to other push sending utilities once login
49
32
// detection is made public.
50
33
loginRecord , err := data .GetLatestLoginByOwner (ctx , owner .PublicKey ().ToBase58 ())
You can’t perform that action at this time.
0 commit comments