Load channelType from settings
This commit is contained in:
parent
19ee6c927a
commit
2ab2ac5e3c
|
@ -22,7 +22,14 @@ func (b *memoryBackend) getTimeline(channel string) TimelineBackend {
|
|||
timelineType := "sorted-set"
|
||||
if channel == "notifications" {
|
||||
timelineType = "stream"
|
||||
} else {
|
||||
if setting, ok := b.Settings[channel]; ok {
|
||||
if setting.ChannelType != "" {
|
||||
timelineType = setting.ChannelType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if timelineType == "sorted-set" {
|
||||
timeline := &redisSortedSetTimeline{channel}
|
||||
err := timeline.Init()
|
||||
|
|
Loading…
Reference in New Issue
Block a user