MM-10272: Add a count for pinned posts header icon (#11840)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
5a477a617a
Коммит
b9a3c2e90e
@@ -1382,6 +1382,23 @@ func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string) {
|
||||
return
|
||||
}
|
||||
|
||||
func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string) {
|
||||
start := timemodule.Now()
|
||||
|
||||
s.ChannelStore.InvalidatePinnedPostCount(channelId)
|
||||
|
||||
t := timemodule.Now()
|
||||
elapsed := t.Sub(start)
|
||||
if s.Root.Metrics != nil {
|
||||
success := "false"
|
||||
if true {
|
||||
success = "true"
|
||||
}
|
||||
s.Root.Metrics.ObserveStoreMethodDuration("ChannelStore.InvalidatePinnedPostCount", success, float64(elapsed))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool {
|
||||
start := timemodule.Now()
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user