Skip to content

Commit 112514b

Browse files
authored
Remove staff check gate for badge counts (#81)
1 parent fc6f009 commit 112514b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pkg/code/push/badge_count.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)