Hello!
We have a weird issue that seems to relate to the various calls of init() and reset() on the ChannelService.
In short, we have a configuration service that is responsible for setting the standard "filter list" that gets passed to init(). We call reset() and then init(). The issue is that sometimes due to a configuration change on the user, the filters will update. If we are on a user's chat page, it will always deselect the active chat, which can cause chats to simply disappear.
IMO, it would be a better overall DX if the channel listing was always reset when calling init(). As it stands, you either must always call reset(), which will deselect the chat, even if you don't want it to, or you will get duplicate records in the channels$ observable.
Hello!
We have a weird issue that seems to relate to the various calls of
init()andreset()on theChannelService.In short, we have a configuration service that is responsible for setting the standard "filter list" that gets passed to
init(). We callreset()and theninit(). The issue is that sometimes due to a configuration change on the user, the filters will update. If we are on a user's chat page, it will always deselect the active chat, which can cause chats to simply disappear.IMO, it would be a better overall DX if the channel listing was always reset when calling
init(). As it stands, you either must always callreset(), which will deselect the chat, even if you don't want it to, or you will get duplicate records in thechannels$observable.