mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
When we push a device token, we want to clean out any other user's tokens on the device, but not the current user's. We were wiping away our own token, if it existed, before creating it again. This was probably never a user-facing problem; it just made for dead code and a little unnecessary DB churn. By excluding the current user from the delete() call, we exercise the update path in our tests now, so we have 100% coverage.