feat: Implement microphone monitoring feature; enhance text overflow handling and line height across components
This commit is contained in:
@@ -159,6 +159,24 @@ export function RenderMessageContent({
|
||||
</>
|
||||
);
|
||||
|
||||
// Check for custom renderer from plugins BEFORE standard type handling
|
||||
// so plugins can intercept any msgtype including custom ones.
|
||||
const customRendererEarly = pluginRegistry.getRenderer('message');
|
||||
if (customRendererEarly) {
|
||||
try {
|
||||
const messageDataEarly = {
|
||||
msgtype: msgType,
|
||||
...getContent(),
|
||||
};
|
||||
const customContentEarly = customRendererEarly(messageDataEarly, () => null);
|
||||
if (customContentEarly) {
|
||||
return customContentEarly as React.ReactElement;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('[RenderMessageContent] Custom renderer error (early):', error);
|
||||
}
|
||||
}
|
||||
|
||||
if (msgType === MsgType.Text) {
|
||||
return (
|
||||
<MText
|
||||
|
||||
Reference in New Issue
Block a user