Skip to content

Commit

Permalink
Merge branch 'master' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Oct 12, 2023
2 parents 7a67876 + 55d5cc2 commit f9a5013
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/js/components/PrivateMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/js/nostr/Events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/chat/NewChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f9a5013

Please sign in to comment.