Clear self_participant_ids on logout

This commit is contained in:
Tulir Asokan 2023-07-19 21:15:24 +03:00
parent 907e6af77b
commit 0d8edd817a

View file

@ -540,6 +540,7 @@ func (user *User) HasSession() bool {
func (user *User) DeleteSession() {
user.Session = nil
user.SelfParticipantIDs = []string{}
user.PhoneID = ""
err := user.Update(context.TODO())
if err != nil {