Changeset b939cff


Ignore:
Timestamp:
2013-08-02T10:48:03Z (11 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
6d9f0ba
Parents:
090c9b7
Message:

work around libotr bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r090c9b7 rb939cff  
    435435                ic->acc->user, ic->acc->prpl->name, iu->bu->handle, instag,
    436436                emsg, NULL, &otrmsg, OTRL_FRAGMENT_SEND_ALL, &ctx, NULL, NULL);
     437        /* in libotr 4.0.0 with OTRL_FRAGMENT_SEND_ALL, otrmsg must be passed
     438         * but the value it gets carries no meaning. it can be set even though
     439         * the message has been injected. */
    437440
    438441        if(emsg != msg) {
    439442                g_free(emsg);   /* we're done with this one */
    440         }
    441         if(otrmsg) {
    442                 /* Is this ever reached!? */
    443                 ic->acc->prpl->buddy_msg(ic, iu->bu->handle, otrmsg, 0);
    444443        }
    445444        if(st) {
     
    656655int op_max_message_size(void *opdata, ConnContext *context)
    657656{
     657        /* libotr 4.0.0 has a bug where it doesn't set opdata */
     658        if(!opdata) {
     659                /* crude fallback */
     660                return 800;
     661        }
     662
    658663        struct im_connection *ic =
    659664                check_imc(opdata, context->accountname, context->protocol);
    660 
     665 
    661666        return ic->acc->prpl->mms;
    662667}
Note: See TracChangeset for help on using the changeset viewer.