merge muc pm buffers

master
bqv 3 years ago
parent 87316b70b9
commit 54a8ca57a5
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -20,6 +20,7 @@
#include "buffer.hh"
#include "pgp.hh"
#include "util.hh"
#include "xmpp/node.hh"
const char *channel__transport_name(enum t_channel_transport transport)
{
@ -297,6 +298,14 @@ struct t_channel *channel__new(struct t_account *account,
ptr_buffer = channel__create_buffer(account, type, name);
if (!ptr_buffer)
return NULL;
else if (type == CHANNEL_TYPE_PM)
{
ptr_channel = channel__search(account, jid(account->context, id).bare.data());
if (ptr_channel)
{
weechat_buffer_merge(ptr_buffer, ptr_channel->buffer);
}
}
if ((new_channel = (struct t_channel*)malloc(sizeof(*new_channel))) == NULL)
return NULL;

Loading…
Cancel
Save