Web library v1.0.2
Fixed
- Always use localStorage (used sessionStorage for anon and local for non-anon, but we always want localStorage for both)
- On every new message, devices call was made and thus device kept registering as a new device (and thus push notifications didn't work because the pushToken was only made initial and bound to that device, but because we kept making new device they had no pushToken)
- When merging anon with non-anon, pushToken was reset in the device in DB, now the pushToken stays so the non-anon conversation can receive push notifications. To make this possible, we have to store the pushToken in the localStorage