fix room name and add interface

This commit is contained in:
Peter Maquiran
2022-01-13 11:55:21 +01:00
parent cf98e99531
commit 364108ab44
3 changed files with 71 additions and 4 deletions
@@ -4,6 +4,7 @@ import { WsChatService } from 'src/app/services/chat/ws-chat.service';
import { MessageService } from 'src/app/services/chat/message.service'
import { SessionStore } from 'src/app/store/session.service';
import { capitalizeTxt } from 'src/plugin/text'
import { Rooms, Update } from 'src/app/models/chatMethod';
@Injectable({
providedIn: 'root'
@@ -35,10 +36,10 @@ export class WsChatMethodsService {
this.loadingWholeList = true
const rooms: any = await this.WsChatService.getRooms();
console.log("ROOMS" + JSON.stringify(rooms))
console.log("ROOMS" + rooms)
rooms.result.update.forEach((roomData:any) => {
rooms.result.update.forEach((roomData:Update) => {
let room:RoomService;
console.log(roomData);