fix: only use hex string when send message via compose dialog

This commit is contained in:
reya
2024-08-08 09:02:43 +07:00
parent 6d93c1e4d2
commit c2ebf8e22c
4 changed files with 61 additions and 39 deletions

View File

@@ -79,11 +79,6 @@ export function getReceivers(tags: string[][]) {
return p;
}
export function getChatId(pubkey: string, tags: string[][]) {
const id = [pubkey, tags.map((tag) => tag[0] === "p" && tag[1])].join("-");
return id;
}
export function groupEventByDate(events: NostrEvent[]) {
const groups = Object.groupBy(events, (event) => {
return dayjs.unix(event.created_at).startOf("day").format("MMM DD, YYYY");