diff --git a/src/app/components/main-chat/main-chat.component.ts b/src/app/components/main-chat/main-chat.component.ts index a049916..20bea93 100644 --- a/src/app/components/main-chat/main-chat.component.ts +++ b/src/app/components/main-chat/main-chat.component.ts @@ -57,7 +57,6 @@ export class MainChatComponent { openMenu: boolean = false; showProfil: boolean = false; talkToUser!: User[]; - routToPrvCHannel: boolean = false; constructor( private route: Router, @@ -297,7 +296,6 @@ export class MainChatComponent { if ('firstName' in element) { this.chatService.inputValue = `@${element.firstName} ${element.lastName}`; const getUserID = element.id!; - this.routToPrvCHannel = true; this.checkIfPrvChatExist(getUserID); } else { this.chatService.inputValue = `#${element.name}`; diff --git a/src/app/components/main-chat/single-chat/edit-msg/edit-msg.component.ts b/src/app/components/main-chat/single-chat/edit-msg/edit-msg.component.ts index 6ea074f..4d2307b 100644 --- a/src/app/components/main-chat/single-chat/edit-msg/edit-msg.component.ts +++ b/src/app/components/main-chat/single-chat/edit-msg/edit-msg.component.ts @@ -1,15 +1,5 @@ -import { - Component, - EventEmitter, - HostListener, - Input, - Output, -} from '@angular/core'; -import { - Chat, - ChatAnswers, - ChatReactions, -} from '../../../../interface/chat.interface'; +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Chat, ChatAnswers } from '../../../../interface/chat.interface'; import { SingleChatComponent } from '../single-chat.component'; import { CommonModule } from '@angular/common'; import { FormsModule, NgForm } from '@angular/forms'; diff --git a/src/app/components/main-chat/single-chat/reaction-emojis/reaction-emojis.component.ts b/src/app/components/main-chat/single-chat/reaction-emojis/reaction-emojis.component.ts index 5eb23a1..e49cd95 100644 --- a/src/app/components/main-chat/single-chat/reaction-emojis/reaction-emojis.component.ts +++ b/src/app/components/main-chat/single-chat/reaction-emojis/reaction-emojis.component.ts @@ -1,11 +1,4 @@ -import { - AfterViewInit, - Component, - ElementRef, - HostListener, - Input, - ViewChild, -} from '@angular/core'; +import { Component, Input } from '@angular/core'; import { SmallBtnComponent } from '../../../../shared/components/small-btn/small-btn.component'; import { CommonModule } from '@angular/common'; import { @@ -15,10 +8,8 @@ import { } from '../../../../interface/chat.interface'; import { UserService } from '../../../../service/user.service'; import { ChatService } from '../../../../service/chat.service'; -import { ChannleService } from '../../../../service/channle.service'; import { EmojiPickerComponent } from '../../../../shared/components/emoji-picker/emoji-picker.component'; import { EmojiComponent } from '@ctrl/ngx-emoji-mart/ngx-emoji'; -import { timeInterval } from 'rxjs'; import { User } from '../../../../interface/user.interface'; import { SharedService } from '../../../../service/shared.service'; import { TranslateModule } from '@ngx-translate/core'; @@ -51,7 +42,6 @@ export class ReactionEmojisComponent { dialogY: number = 0; constructor( - private elementRef: ElementRef, public userService: UserService, private chatService: ChatService, private sharedService: SharedService diff --git a/src/app/components/main/main.component.ts b/src/app/components/main/main.component.ts index 3510a7e..ccf5edf 100644 --- a/src/app/components/main/main.component.ts +++ b/src/app/components/main/main.component.ts @@ -47,7 +47,6 @@ export class MainComponent implements OnInit { public channelService: ChannleService, private router: Router, private route: ActivatedRoute, - private elementRef: ElementRef, public toggleAllBooleans: ToggleBooleanService, private sharedService: SharedService ) {}