refresh avatar/display names
This commit is contained in:
parent
e2a1b85de9
commit
a188639ff0
2 changed files with 18 additions and 0 deletions
|
|
@ -43,6 +43,15 @@ const react = () => {
|
|||
const notAccepted = typeof pubToIncoming[req.from] === 'undefined'
|
||||
|
||||
if (notAccepted) {
|
||||
if (typeof pubToAvatar[req.from] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onAvatar(() => {}, req.from)
|
||||
}
|
||||
if (typeof pubToDn[req.from] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onDisplayName(() => {}, req.from)
|
||||
}
|
||||
|
||||
finalReqs.push({
|
||||
id,
|
||||
requestorAvatar: pubToAvatar[req.from] || null,
|
||||
|
|
|
|||
|
|
@ -55,6 +55,15 @@ const react = () => {
|
|||
continue
|
||||
}
|
||||
|
||||
if (typeof pubToAvatar[recipientPub] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onAvatar(() => {}, recipientPub)
|
||||
}
|
||||
if (typeof pubToDN[recipientPub] === 'undefined') {
|
||||
// eslint-disable-next-line no-empty-function
|
||||
Streams.onDisplayName(() => {}, recipientPub)
|
||||
}
|
||||
|
||||
finalSentReqs.push({
|
||||
id: sentReqID,
|
||||
recipientAvatar: pubToAvatar[recipientPub] || null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue