bitlbee / bitlbee-facebook

Facebook protocol plugin for BitlBee
GNU General Public License v2.0
279 stars 49 forks source link

facebook-api: Fix id assertion in fb_api_cb_publish_mst() #204

Closed oliverralbertini closed 3 years ago

oliverralbertini commented 3 years ago

Sometimes id comes back as 1, but whether it's 1 or 2, fb_thrift_read_str() seems to do the right thing. This prevents crashes of this nature:

facebook - Error: Failed to read thrift: facebook-api.c:1548 fb_api_cb_publish_mst: assertion 'id == 2'

Note this happens when connected to a workplace account, in case others haven't seen it.

dequis commented 3 years ago

Thank you!