Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32223332
D7827.1765208276.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7827.1765208276.diff
View Options
diff --git a/web/chat/message.react.js b/web/chat/message.react.js
--- a/web/chat/message.react.js
+++ b/web/chat/message.react.js
@@ -9,6 +9,8 @@
import { longAbsoluteDate } from 'lib/utils/date-utils.js';
import css from './chat-message-list.css';
+import { useEditModalContext } from './edit-message-provider.js';
+import { ComposedEditTextMessage } from './edit-text-message.react.js';
import MultimediaMessage from './multimedia-message.react.js';
import RobotextMessage from './robotext-message.react.js';
import TextMessage from './text-message.react.js';
@@ -29,8 +31,22 @@
</div>
);
}
+
+ const { editState } = useEditModalContext();
+
let message;
- if (item.messageInfo.type === messageTypes.TEXT) {
+ if (
+ item.messageInfo.id &&
+ editState?.messageInfo.messageInfo?.id === item.messageInfo.id
+ ) {
+ message = (
+ <ComposedEditTextMessage
+ item={props.item}
+ threadInfo={props.threadInfo}
+ background={true}
+ />
+ );
+ } else if (item.messageInfo.type === messageTypes.TEXT) {
message = (
<TextMessage
item={item}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 8, 3:37 PM (8 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5848394
Default Alt Text
D7827.1765208276.diff (1 KB)
Attached To
Mode
D7827: [web] Display edit state (in the background)
Attached
Detach File
Event Timeline
Log In to Comment