Add websocket event and cache invalidation for deleting channels (#2807)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
ada513a014
Коммит
7695cbd1b4
@@ -118,6 +118,10 @@ func (c *WebConn) InvalidateCache() {
|
||||
c.hasPermissionsToTeam = make(map[string]bool)
|
||||
}
|
||||
|
||||
func (c *WebConn) InvalidateCacheForChannel(channelId string) {
|
||||
delete(c.hasPermissionsToChannel, channelId)
|
||||
}
|
||||
|
||||
func (c *WebConn) HasPermissionsToTeam(teamId string) bool {
|
||||
perm, ok := c.hasPermissionsToTeam[teamId]
|
||||
if !ok {
|
||||
|
||||
Ссылка в новой задаче
Block a user