get the room (hash) adress?
coderofsalvation opened this issue · comments
My client is joining a room based on an input field (value #my-room:myserver.org
e.g.), however how can I match against that adress?
I'm using:
roominput = myinput.value // '#my-room:myserver.org'
matrixClient.on(RoomEvent.Timeline, function (event, room, toStartOfTimeline) {
if (toStartOfTimeline) {
return; // don't print paginated results
}
if (event.getType() !== "m.room.message") {
return; // only print messages
}
console.log(
// the room name will update with m.room.name events automatically
"(%s) %s :: %s",
room.name, // 'My room' != roominput
event.getSender(),
event.getContent().body,
);
// roomId != roominput
});
How can I easily filter on roominput?
Can't seem to find an appropriate function in the Room-object documentation :/
This is an issue tracker, not a support forum. Try #matrix-dev:matrix.org
@t3chguy nice to meet you, thank you for your warm reply.
I guess it would not hurt to re-familiarize yourself with the community guidelines of Matrix & opensource in general, as well as what issuetrackers are used for.
That isn't related to this project. matrix.org != matrixprofile.org
here you go: https://www.matrix.org/legal/code-of-conduct/