diff --git a/projects/stream-chat-angular/src/lib/message/message.component.html b/projects/stream-chat-angular/src/lib/message/message.component.html index 9294bfce..e43354fc 100644 --- a/projects/stream-chat-angular/src/lib/message/message.component.html +++ b/projects/stream-chat-angular/src/lib/message/message.component.html @@ -82,7 +82,7 @@ @@ -250,7 +251,8 @@ @@ -307,7 +309,8 @@ @@ -379,7 +382,8 @@ @@ -476,7 +480,8 @@ @@ -512,7 +517,8 @@ @@ -546,7 +552,8 @@ @@ -642,7 +649,8 @@ diff --git a/projects/stream-chat-angular/src/lib/message/message.component.ts b/projects/stream-chat-angular/src/lib/message/message.component.ts index 596f91ca..312001f0 100644 --- a/projects/stream-chat-angular/src/lib/message/message.component.ts +++ b/projects/stream-chat-angular/src/lib/message/message.component.ts @@ -2,7 +2,6 @@ import { Component, ElementRef, Input, - TemplateRef, OnChanges, SimpleChanges, ViewChild, @@ -28,7 +27,7 @@ import { SystemMessageContext, } from '../types'; import emojiRegex from 'emoji-regex'; -import { Observable, Subscription } from 'rxjs'; +import { Subscription } from 'rxjs'; import { CustomTemplatesService } from '../custom-templates.service'; import { listUsers } from '../list-users'; import { ThemeService } from '../theme.service'; @@ -83,28 +82,6 @@ export class MessageComponent implements OnInit, OnChanges, OnDestroy { isReactionSelectorOpen = false; visibleMessageActionsCount = 0; messageTextParts: MessagePart[] = []; - mentionTemplate$?: Observable< - TemplateRef | undefined - >; - deliveredStatusTemplate$?: Observable< - TemplateRef | undefined - >; - sendingStatusTemplate$?: Observable< - TemplateRef | undefined - >; - readStatusTemplate$?: Observable | undefined>; - attachmentListTemplate$?: Observable< - TemplateRef | undefined - >; - messageActionsBoxTemplate$?: Observable< - TemplateRef | undefined - >; - messageReactionsTemplate$?: Observable< - TemplateRef | undefined - >; - systemMessageTemplate$?: Observable< - TemplateRef | undefined - >; popperTriggerClick = NgxPopperjsTriggers.click; popperTriggerHover = NgxPopperjsTriggers.hover; popperPlacementAuto = NgxPopperjsPlacements.AUTO; @@ -136,7 +113,7 @@ export class MessageComponent implements OnInit, OnChanges, OnDestroy { constructor( private chatClientService: ChatClientService, private channelService: ChannelService, - private customTemplatesService: CustomTemplatesService, + public customTemplatesService: CustomTemplatesService, private cdRef: ChangeDetectorRef, themeService: ThemeService, private dateParser: DateParserService @@ -155,20 +132,6 @@ export class MessageComponent implements OnInit, OnChanges, OnDestroy { } }) ); - this.mentionTemplate$ = this.customTemplatesService.mentionTemplate$; - this.attachmentListTemplate$ = - this.customTemplatesService.attachmentListTemplate$; - this.messageActionsBoxTemplate$ = - this.customTemplatesService.messageActionsBoxTemplate$; - this.messageReactionsTemplate$ = - this.customTemplatesService.messageReactionsTemplate$; - this.deliveredStatusTemplate$ = - this.customTemplatesService.deliveredStatusTemplate$; - this.sendingStatusTemplate$ = - this.customTemplatesService.sendingStatusTemplate$; - this.readStatusTemplate$ = this.customTemplatesService.readStatusTemplate$; - this.systemMessageTemplate$ = - this.customTemplatesService.systemMessageTemplate$; } ngOnChanges(changes: SimpleChanges): void {