0

I need to get channel name from GetStream channel object. I know for sure it is possible in react for mobiles where you call channel.data.name property. But I cannot find anywhere this property in GetStream channel object for react web app. The property data contains only messages and members. Does anyone know how to get that channel name?

1 Answers1

0

name is a custom property on channel.

If you add it, it will be returned on the response. Otherwise, it will be missing.

Custom properties are flattened to the top level so channel.name is the way to access it.

ferhatelmas
  • 3,818
  • 1
  • 21
  • 25