mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-23 02:26:42 +00:00
fix: don't delete uid of anonymous clients
This commit is contained in:
@ -27,6 +27,9 @@ func (api *FakePMAPI) GetEvent(eventID string) (*pmapi.Event, error) {
|
||||
}
|
||||
// Request for empty ID returns the latest event.
|
||||
if eventID == "" {
|
||||
if len(api.events) == 0 {
|
||||
return &pmapi.Event{EventID: ""}, nil
|
||||
}
|
||||
return api.events[len(api.events)-1], nil
|
||||
}
|
||||
// Otherwise it tries to find specific ID and return all next events merged into one.
|
||||
|
||||
Reference in New Issue
Block a user