mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
.
This commit is contained in:
parent
254f5b2873
commit
683ad43596
@ -52,7 +52,6 @@ class ChatListItem extends BaseComponent<ChatListItemProps, ChatListItemState> {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
console.log('list item', this.props.chat);
|
||||
this.getLatestMsg();
|
||||
}
|
||||
|
||||
@ -80,7 +79,7 @@ class ChatListItem extends BaseComponent<ChatListItemProps, ChatListItemState> {
|
||||
className={`flex p-2 flex-row gap-4 ${active}`}
|
||||
onClick={() => route(`/chat/${npub || chat}`)}
|
||||
>
|
||||
<Avatar str={npub} width={49} />
|
||||
<Avatar str={npub || chat} width={49} />
|
||||
<div className="flex flex-row">
|
||||
<div className="flex flex-col">
|
||||
<span className="name">
|
||||
|
@ -18,6 +18,9 @@ export const addGroup = (key) => {
|
||||
};
|
||||
|
||||
export const addChatWithInputKey = (inputKey) => {
|
||||
if (inputKey.indexOf('#') > -1) {
|
||||
inputKey = inputKey.split('#')[1];
|
||||
}
|
||||
if (inputKey.startsWith('nsec')) {
|
||||
const hexPriv = Key.toNostrHexAddress(inputKey);
|
||||
hexPriv && addGroup(hexPriv);
|
||||
|
Loading…
Reference in New Issue
Block a user