This commit is contained in:
tiago.kayaya
2021-09-06 16:53:58 +01:00
parent d0fee13402
commit 5e4229e210
7 changed files with 84 additions and 7 deletions
@@ -12,6 +12,7 @@ import { synchro } from 'src/app/services/socket/synchro.service';
import { ChatOptionsFeaturesPage } from 'src/app/modals/chat-options-features/chat-options-features.page';
import { ChatMessageStore } from 'src/app/store/chat/chat-message.service';
import { ChatUserStorage } from 'src/app/store/chat/chat-user.service';
import { TimeService } from 'src/app/services/functions/time.service';
@Component({
selector: 'app-messages',
@@ -58,7 +59,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
private animationController: AnimationController,
private alertService: AlertService,
private toastService: ToastService,
private route: Router
private route: Router,
private timeService: TimeService,
) {
this.loggedUser = authService.ValidatedUserChat['data'];
@@ -151,6 +153,10 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.openNewEventPage.emit(data);
}
showDateDuration(start:any){
return this.timeService.showDateDuration(start);
}
sendMessage() {
this.synchro.$send({})