bug fixed
This commit is contained in:
parent
0766bb6134
commit
a14148389b
|
@ -5,7 +5,8 @@ import {
|
|||
Output,
|
||||
EventEmitter,
|
||||
ViewChildren,
|
||||
ChangeDetectorRef
|
||||
ChangeDetectorRef,
|
||||
ChangeDetectionStrategy
|
||||
} from '@angular/core';
|
||||
import {
|
||||
RoomInfo,
|
||||
|
@ -18,7 +19,7 @@ import { VersionInfo2Response } from '@ucap-webmessenger/api-public';
|
|||
import { LoginResponse } from '@ucap-webmessenger/protocol-authentication';
|
||||
import { TranslatePipe } from 'projects/ucap-webmessenger-ui/src/lib/pipes/translate.pipe';
|
||||
import {
|
||||
TranslateService as uiTranslateService,
|
||||
TranslateService as UcapUiTranslateService,
|
||||
StringUtil
|
||||
} from '@ucap-webmessenger/ui';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
@ -27,7 +28,8 @@ import { EventType } from '@ucap-webmessenger/protocol-event';
|
|||
@Component({
|
||||
selector: 'ucap-room-list-item',
|
||||
templateUrl: './list-item.component.html',
|
||||
styleUrls: ['./list-item.component.scss']
|
||||
styleUrls: ['./list-item.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class ListItemComponent implements OnInit {
|
||||
@Input()
|
||||
|
@ -58,7 +60,7 @@ export class ListItemComponent implements OnInit {
|
|||
|
||||
constructor(
|
||||
private logger: NGXLogger,
|
||||
private uiTranslateService: uiTranslateService,
|
||||
private ucapUiTranslateService: UcapUiTranslateService,
|
||||
private translateService: TranslateService,
|
||||
private changeDetectorRef: ChangeDetectorRef
|
||||
) {}
|
||||
|
@ -125,7 +127,7 @@ export class ListItemComponent implements OnInit {
|
|||
|
||||
getRoomNameByRoomUser(roomUserInfos: (RoomUserInfo | UserInfoShort)[]) {
|
||||
let roomName = new TranslatePipe(
|
||||
this.uiTranslateService,
|
||||
this.ucapUiTranslateService,
|
||||
this.changeDetectorRef
|
||||
).transform(roomUserInfos, 'name', ',');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user