This commit is contained in:
병준 박 2019-10-16 15:06:31 +09:00
commit 659b45610e
2 changed files with 6 additions and 3 deletions

View File

@ -136,7 +136,7 @@
<button mat-menu-item>대화 전달</button>
<button mat-menu-item>대화 나에게 전달</button>
<button mat-menu-item>대화 삭제</button>
<button mat-menu-item *ngIf="isMine(message)">대화 회수</button>
<button mat-menu-item *ngIf="isRecallable(message)">대화 회수</button>
</ng-container>
</ng-template>
</mat-menu>

View File

@ -136,8 +136,11 @@ export class MessagesComponent implements OnInit {
return EventType.RecalledMessage === eventType;
}
isMine(message: Info): boolean {
return message.senderSeq === this.loginRes.userSeq;
isRecallable(message: Info): boolean {
return (
message.senderSeq === this.loginRes.userSeq &&
message.type !== EventType.RecalledMessage
);
}
/** [Event] MassTalk Detail View */