[이슈처리 5] MyTalk 에서 unread count 보이는 문제 수정.
This commit is contained in:
parent
447577aa1b
commit
d90e93f0c6
|
@ -171,6 +171,11 @@
|
||||||
[userInfos]="userInfoList"
|
[userInfos]="userInfoList"
|
||||||
[loginRes]="loginRes"
|
[loginRes]="loginRes"
|
||||||
[sessionVerInfo]="sessionVerInfo"
|
[sessionVerInfo]="sessionVerInfo"
|
||||||
|
[isShowUnreadCount]="
|
||||||
|
roomInfo.roomType !== RoomType.Mytalk &&
|
||||||
|
roomInfo.roomType !== RoomType.Bot &&
|
||||||
|
roomInfo.roomType !== RoomType.Allim
|
||||||
|
"
|
||||||
(moreEvent)="onMoreEvent($event)"
|
(moreEvent)="onMoreEvent($event)"
|
||||||
(massDetail)="onMassDetail($event)"
|
(massDetail)="onMassDetail($event)"
|
||||||
(save)="onSave($event)"
|
(save)="onSave($event)"
|
||||||
|
|
|
@ -151,6 +151,8 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
|
|
||||||
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
|
snackBarPreviewEvent: MatSnackBarRef<SimpleSnackBar>;
|
||||||
|
|
||||||
|
RoomType = RoomType;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private store: Store<any>,
|
private store: Store<any>,
|
||||||
private sessionStorageService: SessionStorageService,
|
private sessionStorageService: SessionStorageService,
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
<div class="time secondary-text">
|
<div class="time secondary-text">
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{ getUnreadCount(message) }}</li>
|
<li *ngIf="isShowUnreadCount">{{ getUnreadCount(message) }}</li>
|
||||||
<li>
|
<li>
|
||||||
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
|
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -42,6 +42,8 @@ export class MessagesComponent implements OnInit {
|
||||||
userInfos?: UserInfo[];
|
userInfos?: UserInfo[];
|
||||||
@Input()
|
@Input()
|
||||||
sessionVerInfo: VersionInfo2Response;
|
sessionVerInfo: VersionInfo2Response;
|
||||||
|
@Input()
|
||||||
|
isShowUnreadCount = true;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
openProfile = new EventEmitter<UserInfo>();
|
openProfile = new EventEmitter<UserInfo>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user