pidgin/pidgin

Fix up the XEP-0280 carbons support.

2021-01-30, Gary Kramlich
2fc55152b79c
Fix up the XEP-0280 carbons support.

My initial port of this wasn't great, this is much better.

Testing Done:
sent messages between pidgin2 with gkdr/carbons, conversations on my phone, and pidgin3. I sent messages from all clients and received them on all three clients.

Reviewed at https://reviews.imfreedom.org/r/462/
PROGS = [
'account_option',
'attention_type',
'circular_buffer',
'credential_manager',
'credential_provider',
'image',
'keyvaluepair',
'markup',
'protocol_action',
'protocol_attention',
'protocol_xfer',
'queued_output_stream',
'smiley',
'smiley_list',
'trie',
'util',
'xmlnode'
]
test_ui = static_library(
'test-ui',
'test_ui.c',
'test_ui.h',
c_args: [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
],
dependencies: [libpurple_dep, glib]
)
foreach prog : PROGS
e = executable('test_' + prog, 'test_@0@.c'.format(prog),
c_args : [
'-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
],
dependencies : [libpurple_dep, glib],
link_with: test_ui,
)
test(prog, e)
endforeach