1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

relay/api: fix buffers synchronization with existing buffers that have been renamed on remote in the meanwhile (closes #2169)

This commit is contained in:
Sébastien Helleu
2024-08-09 18:04:10 +02:00
parent 78f0a3e087
commit c132adc52c
2 changed files with 3 additions and 0 deletions
@@ -816,6 +816,8 @@ RELAY_REMOTE_EVENT_CALLBACK(buffer)
/* if buffer exists, set properties, otherwise create buffer */
apply_props = 1;
ptr_buffer = event->buffer;
if (!ptr_buffer)
ptr_buffer = relay_remote_event_search_buffer (event->remote, id);
if (!ptr_buffer)
{
if (weechat_asprintf (&full_name, "remote.%s.%s", event->remote->name, name) >= 0)