chat list click -> npub

This commit is contained in:
Martti Malmi 2023-02-08 12:48:25 +02:00
parent ff094e635b
commit 67274dbb90
2 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ import {
const bech32 = require('bech32-buffer'); /* eslint-disable-line @typescript-eslint/no-var-requires */
import { sha256 } from '@noble/hashes/sha256';
import localForage from 'localforage';
import { route } from 'preact-router';
import SortedLimitedEventSet from './SortedLimitedEventSet';
import { route } from 'preact-router';
const startTime = Date.now() / 1000;

View File

@ -112,7 +112,7 @@ class ChatListItem extends Component {
role="button"
tabindex="0"
class="chat-item ${activity} ${hasUnseen} ${active}"
onClick=${() => route(`/chat/${this.props.chat}`)}
onClick=${() => route(`/chat/${Nostr.toNostrBech32Address(this.props.chat, 'npub')}`)}
>
${iconEl}
<div class="text">