修复错误的头像 src
This commit is contained in:
@@ -10,6 +10,7 @@ import * as React from 'react'
|
|||||||
import UserOrChatInfoDialogLoader from "./UserOrChatInfoDialogDataLoader"
|
import UserOrChatInfoDialogLoader from "./UserOrChatInfoDialogDataLoader"
|
||||||
import MainSharedReducer from "../MainSharedReducer"
|
import MainSharedReducer from "../MainSharedReducer"
|
||||||
import ClientCache from "../../ClientCache"
|
import ClientCache from "../../ClientCache"
|
||||||
|
import getClient from "../../getClient"
|
||||||
|
|
||||||
export default function UserOrChatInfoDialog() {
|
export default function UserOrChatInfoDialog() {
|
||||||
const shared = useContextSelector(MainSharedContext, (context: Shared) => ({
|
const shared = useContextSelector(MainSharedContext, (context: Shared) => ({
|
||||||
@@ -31,7 +32,7 @@ export default function UserOrChatInfoDialog() {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<Avatar src={chat.getAvatarFileHash()} text={chat.getTitle()} style={{
|
<Avatar src={getClient().getUrlForFileByHash(chat.getAvatarFileHash())} text={chat.getTitle()} style={{
|
||||||
width: '50px',
|
width: '50px',
|
||||||
height: '50px',
|
height: '50px',
|
||||||
}} />
|
}} />
|
||||||
|
|||||||
Reference in New Issue
Block a user