Merge branch 'master' of http://10.81.13.221:6990/Web/next-ucap-messenger
This commit is contained in:
commit
659b45610e
|
@ -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>
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user