Chat Effects & Commands in thread context (#7138)
This commit is contained in:
@@ -957,7 +957,11 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
||||
|
||||
CHAT_EFFECTS.forEach(effect => {
|
||||
if (containsEmoji(ev.getContent(), effect.emojis) || ev.getContent().msgtype === effect.msgType) {
|
||||
dis.dispatch({ action: `effects.${effect.command}` });
|
||||
// For initial threads launch, chat effects are disabled
|
||||
// see #19731
|
||||
if (!SettingsStore.getValue("feature_thread") || !ev.isThreadRelation) {
|
||||
dis.dispatch({ action: `effects.${effect.command}` });
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user