Closed olabini closed 6 years ago
OK, this seems to be because the prekey client plugins are using one static callback field, and this callback struct also contains the ctx to use. However, in get_prekey_client_for_sending_offline_message
the ctx part of the struct gets modified. Thus, this will ALWAYS have problems for the prekey work. I'll have to rethink how all this fits together to fix this problem.
Opened #82 to track this. I'll keep this open until I can verify that #82 fixes this problem.
This has been temporarily fixed in libotr-ng by copying the callbacks. The real solution is #82 though.
It seems the instance tag is incorrect