فهرست منبع

Do not apply the receiver's color as background color (#864)

We may want to revert this once the apps do not send avatar images for
every contact (even those who do not have an profile image) any more.
Lennart Grahl 6 سال پیش
والد
کامیت
8ad24d996b
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      src/directives/avatar.ts

+ 0 - 4
src/directives/avatar.ts

@@ -118,7 +118,6 @@ export default [
                     // Set initial values
                     this.highResolution = this.resolution === 'high';
                     this.isLoading = this.highResolution;
-                    this.backgroundColor = receiver.color;
                     this.receiverName = receiver.displayName;
                 };
 
@@ -140,8 +139,6 @@ export default [
                             return false;
                         }
                         this.isLoading = false;
-                        // Reset background color
-                        this.backgroundColor = null;
                         return true;
                     };
 
@@ -279,7 +276,6 @@ export default [
                     </div>
                     <img
                          ng-class="ctrl.avatarClass()"
-                         ng-style="{ 'background-color': ctrl.backgroundColor }"
                          ng-src="{{ ctrl.getAvatarUri() }}"
                          in-view="ctrl.requestAvatar($inview)"
                          aria-label="avatar {{ ctrl.receiverName }}">