mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-19 06:33:32 +00:00
chat list click -> npub
This commit is contained in:
parent
ff094e635b
commit
67274dbb90
@ -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;
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user