We did not invalidate the cache after converting a user to bot.
That led to issues. See JIRA for more details.

https://mattermost.atlassian.net/browse/MM-62837

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2025-02-20 21:45:44 +05:30
коммит произвёл GitHub
родитель 102e3472d8
Коммит fd356b62b4
2 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@@ -617,6 +617,7 @@ func (a *App) ConvertUserToBot(rctx request.CTX, user *model.User) (*model.Bot,
if err := a.RevokeAllSessions(rctx, user.Id); err != nil {
return nil, err
}
a.InvalidateCacheForUser(user.Id)
return bot, nil
}