Prechádzať zdrojové kódy

Ignore avatar on conversation if it's null (#473)

Fixes #464
Danilo Bargen 7 rokov pred
rodič
commit
94f0937162
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/services/webclient.ts

+ 1 - 1
src/services/webclient.ts

@@ -1607,7 +1607,7 @@ export class WebClientService {
             // if a avatar was set on a conversation
             // convert and copy to the receiver
             for (const conversation of data) {
-                if (conversation.avatar !== undefined) {
+                if (conversation.avatar !== undefined && conversation.avatar !== null) {
                     const receiver = this.receivers.getData({
                         id: conversation.id,
                         type: conversation.type,