diff --git a/src/js/components/PrivateMessage.tsx b/src/js/components/PrivateMessage.tsx index 6ec558d03..3d10ca98a 100644 --- a/src/js/components/PrivateMessage.tsx +++ b/src/js/components/PrivateMessage.tsx @@ -41,6 +41,7 @@ const PrivateMessage = ({ event, selfAuthored, showName }: Props) => { if (validateEvent(e) && verifySignature(e)) { console.log(111, e.tags.length === 1, e.tags[0][0] === 'p', e.tags[0][1] === e.pubkey); if (e.tags.length === 1 && e.tags[0][0] === 'p' && e.tags[0][1] === event.pubkey) { + // @ts-ignore e.text = e.content; setInnerEvent(e); return; diff --git a/src/js/nostr/Events.ts b/src/js/nostr/Events.ts index 7527347c2..26dfa6225 100644 --- a/src/js/nostr/Events.ts +++ b/src/js/nostr/Events.ts @@ -363,6 +363,7 @@ const Events = { innerEvent.tags[0][0] === 'p' && innerEvent.tags[0][1] === pubKey ) { + // @ts-ignore innerEvent.text = innerEvent.content; this.saveDMToLocalState(innerEvent, localState.get('groups').get(groupId)); } diff --git a/src/js/views/chat/NewChat.tsx b/src/js/views/chat/NewChat.tsx index 747e67393..878eb8717 100644 --- a/src/js/views/chat/NewChat.tsx +++ b/src/js/views/chat/NewChat.tsx @@ -32,7 +32,7 @@ export const getGroupId = (key) => { export const addGroup = ( key, navigate = true, - inviter = null, + inviter = null as any, name = undefined as string | undefined, ) => { const groupId = getGroupId(key);