[Problem/Question]
When a user is muted in a group channel (channel.myMutedState === MutedState.MUTED), the message long‑press menu still shows Edit. Tapping Edit opens the edit flow, but the backend rejects the update because the user is muted. The user sees an error (e.g. “Couldn’t edit message”) while the input shows that messaging is paused, which is confusing. We’d like a supported way to hide the Edit menu item when the current user is muted in a group channel.
On web, this is not a problem at all.
[UIKit Version]
-
@sendbird/uikit-react-native: 3.11.2
-
@sendbird/uikit-react-native-foundation: 3.11.2
-
@sendbird/uikit-chat-hooks: 3.11.2
-
@sendbird/chat: 4.19.11
-
React Native 0.81.4 (Expo 54)[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
[Frequency]
// How frequently is this issue occurring?
[Current impact]
// How is this currently impacting your implementation?
[Reproduction Steps]
- Send a message as a user in a group channel
- Mute the current user in a group channel (e.g. via channel.myMutedState === MutedState.MUTED).
- Long‑press on the sent message message.
- The menu shows Edit (with Copy, Reply, Delete, etc.).
- Tap Edit → input switches to edit mode.
- Change the text and tap Update → the update is rejected by the backend (e.g. “Couldn’t edit message”).
The Edit item is added in ChannelMessageList’s useCreateMessagePressActions for own user messages without checking mute state:
// In useCreateMessagePressActions, for user messages with sendingStatus === 'succeeded':
const isMyMsg = isMyMessage(message, currentUserId);
if (isMyMsg) {
sheetItems.push(menu.edit(message)); // Always added; no check for channel.myMutedState
}
Suggested fix: Either (a) automatically omit the Edit item when channel.myMutedState === MutedState.MUTED, or (b) add a prop (e.g. enableMessageEdit or enableEditInMessageMenu) / a renderMessageMenu‑style API so we can hide Edit when the user is muted.