poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
961 stars 121 forks source link

A chat room with another user is named "Empty Room" until visited in Weechat #242

Open phil-s opened 3 years ago

phil-s commented 3 years ago

Following up from https://github.com/the-kenny/weechat.el/issues/88#issuecomment-725132083

I'm using matrix.look.human_buffer_names to avoid seeing Matrix IDs, and this is working in general; but if I start a chat with another user (via the 'Element' matrix client) then the room gets named "Empty Room" in Weechat, and it retains that name until such time as the room is selected in the Weechat UI -- at which point it immediately gets a new/better name.

This probably isn't a problem to anyone actually using the Weechat UI, but it's causing me problems with my Relay-based client, as the "Empty Room" name is all that my client sees unless I go to the terminal where Weechat is running and visit the room in that (which triggers the rename, after which my normal client can see the new name as well).

Is it possible for the renaming to happen as soon as the room is created?