This commit is contained in:
Peter Maquiran
2022-01-28 17:33:26 +01:00
parent a7febddb34
commit 151e1ea8ad
5 changed files with 25 additions and 8 deletions
@@ -45,7 +45,19 @@ export class WsChatMethodsService {
const rooms = await this.WsChatService.getRooms();
// console.log("ROOMS" + JSON.stringify(rooms))
this.WsChatService.registerCallback({
type:'Onmessage',
funx:(message)=>{
if(message.msg =='changed' && message.collection == "stream-room-messages") {
if(message.fields.args[0].rid) {
}
}
}
})
rooms.result.update.forEach((roomData: room) => {
this.prepareRoom(roomData);