Build chat applications with PubNub Chat SDK
Does it follow best practices?
Evaluation — 100%
↑ 1.14xAgent success when using this tile
Validation for skill structure
You are building the channel sidebar for a PubNub Chat SDK-based messaging application. The sidebar shows all channels the current user belongs to, along with a badge indicating how many new messages they have not yet seen in each channel. When a user opens a channel, the badge should clear by recording that the user has seen the latest content. The sidebar also needs to load recent messages when a channel is selected.
Write a JavaScript module (channel-sidebar.js) that provides:
Assume a Chat SDK instance is passed into each function.
channel-sidebar.js file with functions for building a channel sidebar with unseen message tracking and message loading.