GetStream / stream-chat-swift

💬 iOS Chat SDK in Swift - Build your own app chat experience for iOS using the official Stream Chat API
https://getstream.io/chat/sdk/ios/
Other
856 stars 209 forks source link

Unable to send message in channel with custom channelType #1378

Closed srgray closed 3 years ago

srgray commented 3 years ago

What did you do?

Attempt to send message in a channel that is defined with a custom channel type

What did you expect to happen?

Message to be sent successfully

What happened instead?

Error received:

2021-08-15 15:54:16.080 [ERROR] [NSManagedObjectContext 0x6000000381a0] [DatabaseContainer.swift:198] [write(_:completion:)] > Failed to save data to DB. Error: Error ChannelDoesNotExist in /******/StreamTest/Pods/StreamChat/Sources/StreamChat/Database/DTOs/MessageDTO.swift:697 -> There is no `ChannelDTO` instance in the DB matching cid: support:Support.

GetStream Environment

GetStream Chat version: 4.0.0-beta.10 GetStream Chat frameworks: StreamChat, StreamChatUI

Additional context

See attached sample project. I am able to send message in a channel with standard channel type (.livestream) but I cannot successfully do it in channel with custom type (.support) StreamTest.zip

srgray commented 3 years ago

I see now the relevant error in Stream Dashboard: GetOrCreateChannel failed with error: "User '****' with role user is not allowed to access Resource ReadChannel on channel type support" We will check on the permissions on this channel.