mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 10:48:05 +01:00
Clear message queue before and after removing a device
This commit is contained in:
@@ -99,9 +99,11 @@ public class DeviceController {
|
||||
throw new WebApplicationException(Response.Status.UNAUTHORIZED);
|
||||
}
|
||||
|
||||
messages.clear(account.getUuid(), deviceId);
|
||||
account.removeDevice(deviceId);
|
||||
accounts.update(account);
|
||||
directoryQueue.refreshRegisteredUser(account);
|
||||
// ensure any messages that came in after the first clear() are also removed
|
||||
messages.clear(account.getUuid(), deviceId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user