Save unread count

This commit is contained in:
Peter Stuifzand 2018-07-08 11:02:10 +02:00
parent ae0d3d5388
commit 379be5436d

View File

@ -428,6 +428,7 @@ func (b *memoryBackend) updateChannelUnreadCount(conn redis.Conn, channel string
if err != nil {
return fmt.Errorf("error: while updating channel unread count for %s: %s", channel, err)
}
defer b.save()
c.Unread = unread
b.Channels[channel] = c
}