mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 12:56:47 +00:00
Clear message queue before and after removing a device
This commit is contained in:
1 parent
e52b8c8423
commit
26bc5973b5
2 files changed
+28
No files matched your search
+2
@@ -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