Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -405,10 +405,10 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
return;
|
||||
}
|
||||
|
||||
if (plainText === '') return;
|
||||
|
||||
let body = plainText.trim();
|
||||
let formattedBody = customHtml.trim();
|
||||
let formattedBody = customHtml.trim().replace(/(<br\s*\/?>\s*)+$/gi, '');
|
||||
|
||||
if (body === '') return;
|
||||
|
||||
// Apply emoticon conversion if enabled
|
||||
if (autoConvertEmoticons) {
|
||||
|
||||
Reference in New Issue
Block a user