GODT-2047: Clear last event ID when clearing sync status

This commit is contained in:
James Houlahan
2022-11-17 13:18:47 +00:00
parent fe5e8ce7f7
commit 1e48ab4b9c
5 changed files with 68 additions and 70 deletions

View File

@ -159,6 +159,7 @@ func (user *User) SetLastMessageID(messageID string) error {
func (user *User) ClearSyncStatus() error {
return user.vault.modUser(user.userID, func(data *UserData) {
data.SyncStatus = SyncStatus{}
data.EventID = ""
})
}