buffer: Change the way the domain localvar is set.
Room ids in newer room versions will become opaque strings and won't contain the domain of the homeserver. Get the domain from the homeserver url instead.
This commit is contained in:
parent
e9214862fe
commit
934863e209
1 changed files with 5 additions and 9 deletions
|
@ -885,15 +885,11 @@ class RoomBuffer(object):
|
||||||
buffer_name, server_name, user
|
buffer_name, server_name, user
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
W.buffer_set(
|
||||||
_, room_domain = room.room_id.split(":", 1)
|
self.weechat_buffer._ptr,
|
||||||
W.buffer_set(
|
"localvar_set_domain",
|
||||||
self.weechat_buffer._ptr,
|
self.homeserver.hostname
|
||||||
"localvar_set_domain",
|
)
|
||||||
room_domain
|
|
||||||
)
|
|
||||||
except ValueError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
W.buffer_set(
|
W.buffer_set(
|
||||||
self.weechat_buffer._ptr,
|
self.weechat_buffer._ptr,
|
||||||
|
|
Loading…
Reference in a new issue