mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
create room
This commit is contained in:
@@ -33,8 +33,9 @@ import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-co
|
||||
import { RouteService } from 'src/app/services/route.service';
|
||||
import { Plugins } from '@capacitor/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { RoomRemoteDataSourceState } from 'src/app/services/Repositorys/chat/data-source/room-memory-data-source';
|
||||
|
||||
import { RoomRemoteDataSourceState } from 'src/app/services/Repositorys/chat/data-source/room/room-memory-data-source';
|
||||
import { RoomRepositoryService } from 'src/app/services/Repositorys/chat/repository/room-repository.service'
|
||||
import { RoomListOutPutDTO } from 'src/app/services/Repositorys/chat/dto/room/roomListOutputDTO';
|
||||
|
||||
const { App } = Plugins;
|
||||
|
||||
@@ -114,6 +115,7 @@ export class ChatPage implements OnInit {
|
||||
routerSubscription
|
||||
|
||||
count$: Observable<RoomRemoteDataSourceState>;
|
||||
items$!: Observable<RoomListOutPutDTO[]>;
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -134,12 +136,13 @@ export class ChatPage implements OnInit {
|
||||
private RochetChatConnectorService: RochetChatConnectorService,
|
||||
private zone: NgZone,
|
||||
public RouteService: RouteService,
|
||||
private store: Store<{ chat: RoomRemoteDataSourceState }>
|
||||
private store: Store<{ chat: RoomRemoteDataSourceState }>,
|
||||
private RoomRepositoryService: RoomRepositoryService
|
||||
) {
|
||||
|
||||
this.count$ = store.select('chat');
|
||||
|
||||
this.headers = new HttpHeaders();;
|
||||
this.headers = new HttpHeaders();
|
||||
window.onresize = (event) => {
|
||||
if (window.innerWidth > 701) {
|
||||
this.modalController.dismiss();
|
||||
@@ -159,8 +162,12 @@ export class ChatPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
// Fetch all items using useLiveQuery
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
this.items$ = this.RoomRepositoryService.getItemsLive()
|
||||
|
||||
this.segment = "Contactos";
|
||||
|
||||
this.authService.userData$.subscribe((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user