GetStream / stream-chat-react

React Chat SDK ➜ Stream Chat 💬
https://getstream.io/chat/sdk/react/
Other
702 stars 273 forks source link

Mute and Flag actions do not appear to do anything #37

Closed codekiln closed 5 years ago

codekiln commented 5 years ago

As far as I can tell in version 0.6.15, the mute and flag buttons do not do anything: image

I'm using a "livestream" type channel roughly equivalent to the livestream example Getstream.IO has put on codepen:

const LiveObserverChatApp = ({chatChannelId, chatUserId, chatAppId, chatImage, chatName, chatUserToken}) => {
  const chatClient = new StreamChat(chatAppId);
  const chatUser = {
      id: chatUserId,
      name: chatName,
      image: chatImage
    };

  chatClient.setUser(chatUser, chatUserToken);

  const channel = chatClient.channel('livestream', chatChannelId, {});

  return <Chat client={chatClient} theme={'messaging light'}>
    <Channel channel={channel}>
      <Window hideOnThread>
        <MessageList Message={MessageLivestream}/>
        <MessageInput/>
      </Window>
      <Thread Message={MessageLivestream} fullWidth/>
    </Channel>
  </Chat>
}

When I log in as a user added as a moderator to the channel using the server side API or if I log in as a typical user, I do not see any result from pressing either of these actions buttons. For example, if I click "Flag", there is no indication a message is flagged. If I click "Mute", messages from that user are not muted. Are they as yet unimplemented in the components?

tschellenbach commented 5 years ago

@vishalnarkhede is working on the UI for this, right now the API calls are triggered, but there is no visible UI feedback

vishalnarkhede commented 5 years ago

@codekiln Visual response for these actions should be published today. Will let you know!!

vishalnarkhede commented 5 years ago

Hey @codekiln you can use v0.6.16 now.

Please reopen in case it doesn't work for you!