|
@@ -79,7 +79,6 @@ export class ContactControllerModel implements threema.ControllerModel {
|
|
|
|
|
|
default:
|
|
|
$log.error('Invalid controller model mode: ', this.getMode());
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -99,6 +98,10 @@ export class ContactControllerModel implements threema.ControllerModel {
|
|
|
return this.identity !== undefined && this.identity.length === 8;
|
|
|
}
|
|
|
|
|
|
+ public canView(): boolean {
|
|
|
+ return this.contact.id !== this.webClientService.me.id;
|
|
|
+ }
|
|
|
+
|
|
|
public canEdit(): boolean {
|
|
|
return this.access !== undefined && (
|
|
|
this.access.canChangeAvatar === true
|