Clear self_participant_ids on logout
This commit is contained in:
parent
907e6af77b
commit
0d8edd817a
1 changed files with 1 additions and 0 deletions
1
user.go
1
user.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue