feat: added conversation id to debugmessageinfo

pull/3083/head
William Grant 12 months ago
parent 4decf22241
commit 20766c4aba

@ -104,6 +104,7 @@
"contextMenuNoSuggestions": "No Suggestions",
"continue": "Continue",
"conversationsHeader": "Contacts and Groups: $count$",
"conversationId": "Conversation ID",
"conversationsNone": "You don't have any conversations yet",
"conversationsSettingsTitle": "Conversations",
"copiedToClipboard": "Copied",

@ -20,6 +20,7 @@ import {
} from '../../../../../../state/selectors';
import { isDevProd } from '../../../../../../shared/env_vars';
import { useSelectedConversationKey } from '../../../../../../state/selectors/selectedConversation';
import { Flex } from '../../../../../basic/Flex';
import { SpacerSM } from '../../../../../basic/Text';
@ -66,6 +67,7 @@ const showDebugLog = () => {
};
const DebugMessageInfo = ({ messageId }: { messageId: string }) => {
const convoId = useSelectedConversationKey();
const messageHash = useMessageHash(messageId);
const serverId = useMessageServerId(messageId);
const expirationType = useMessageExpirationType(messageId);
@ -78,6 +80,9 @@ const DebugMessageInfo = ({ messageId }: { messageId: string }) => {
return (
<>
{convoId ? (
<LabelWithInfo label={`${window.i18n('conversationId')}:`} info={convoId} />
) : null}
{messageHash ? (
<LabelWithInfo label={`${window.i18n('messageHash')}:`} info={messageHash} />
) : null}

Loading…
Cancel
Save