Browse Source

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

Fixes #464
Danilo Bargen 7 years ago
parent
commit
94f0937162
1 changed files with 1 additions and 1 deletions
  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,