Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Change room name, topic & image (avatar) #97

Open
fkuersch opened this issue Oct 9, 2023 · 2 comments
Open

Feature request: Change room name, topic & image (avatar) #97

fkuersch opened this issue Oct 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@fkuersch
Copy link

fkuersch commented Oct 9, 2023

I'd like to change a room's name, topic & image (avatar) using node-red-contrib-matrix-chat. Just like the following commands in Element:

/roomname <name>
/topic <topic>
/roomavatar <mxc_url>
@skylord123 skylord123 added the enhancement New feature or request label Oct 15, 2023
@skylord123
Copy link
Contributor

Yeah this would be a nice addition. I think a node that allows you to change the various settings by sending a msg.payload containing an object with what you want change would be a great way to accomplish this.

Example:

msg.payload = {
	'name': 'New Room Name',
	'topic': 'New Room Topic',
	'avatar': '<mxc_url>',
	'publish_addresses': ['#my-room', '#another-room-address'],
	'url_previews': true
};

And if any of them are null/undefined we just ignore changing that setting.

skylord123 added a commit that referenced this issue Oct 15, 2023
- Can set room name, topic, and avatar
- Can get name, topic, avatar, encrypted, power_levels, aliases, guest_access, join_rule, and join_allow_rules
@fkuersch
Copy link
Author

Wow, you already implemented that feature. That's great news. I appreciate that. Thank you :)

skylord123 added a commit that referenced this issue Oct 22, 2023
- fix join_allow_rules for Room Setting node not getting correctly
- update Room Setting docs
skylord123 added a commit that referenced this issue Oct 22, 2023
- Room Settings node renamed to Room State Events
- Room State Events node allows configuring inputs/outputs from config
- Fix bug with various nodes allowing execution even though matrix server isn't connected
- Replace deprecated matrixClient.setGlobalErrorOnUnknownDevices method
- Update docs for new Room State Events node
skylord123 added a commit that referenced this issue Oct 22, 2023
- Remove unused returnValues config option for Room State Events node
skylord123 added a commit that referenced this issue Oct 22, 2023
…ck to server if necessary (allows for faster lookups and gives the full event object with information about when/who created it, etc)

- #97 remove num, bool, bin, and data from being options you can set to a state event (currently only objects and sometimes strings are allowed)
- Updated Leave Room node so it deletes the room from local storage
- Updated server config node so it deletes the matrix client from storage during shutdown (possibly solution to #94)
skylord123 added a commit that referenced this issue Oct 22, 2023
…ode for events that support it (required for m.space.child and m.space.parent)

- #97 added support for m.room.history_visibility, m.room.server_acl, m.room.pinned_events, m.space.child, and m.space.parent
- #97 fix issue with checkbox being hidden on config page when adding new setters/getters on config page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants