mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix: use isUsAnySogsFromCache instead of getOurPubKeyStrFromCache in useQuoteAuthorName
this gives proper blinded key support
This commit is contained in:
parent
ca6463da02
commit
5b503d32cc
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import { PubKey } from '../session/types';
|
|||
import { UserUtils } from '../session/utils';
|
||||
import { StateType } from '../state/reducer';
|
||||
import { getMessageReactsProps } from '../state/selectors/conversations';
|
||||
import { isUsAnySogsFromCache } from '../session/apis/open_group_api/sogsv3/knownBlindedkeys';
|
||||
|
||||
export function useAvatarPath(convoId: string | undefined) {
|
||||
const convoProps = useConversationPropsById(convoId);
|
||||
|
@ -186,7 +187,7 @@ export function useMessageReactsPropsById(messageId?: string) {
|
|||
|
||||
export function useQuoteAuthorName(authorId?: string) {
|
||||
const convoProps = useConversationPropsById(authorId);
|
||||
return authorId === UserUtils.getOurPubKeyStrFromCache()
|
||||
return authorId && isUsAnySogsFromCache(authorId)
|
||||
? window.i18n('you')
|
||||
: convoProps?.nickname || convoProps?.isPrivate
|
||||
? convoProps?.displayNameInProfile
|
||||
|
|
Loading…
Reference in a new issue