Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rbd482c3 r7803326  
    216216void owl_function_add_outgoing_zephyrs(const owl_zwrite *z)
    217217{
    218   if (z->cc && owl_zwrite_is_personal(z)) {
     218  if (z->cc || owl_zwrite_get_numrecips(z) == 0) {
    219219    /* create the message */
    220220    owl_message *m = g_new(owl_message, 1);
     
    225225    int i;
    226226    for (i = 0; i < owl_zwrite_get_numrecips(z); i++) {
    227       owl_message *m;
    228 
    229       if (!owl_zwrite_recip_is_personal(owl_zwrite_get_recip_n(z, i)))
    230         continue;
    231 
    232227      /* create the message */
    233       m = g_new(owl_message, 1);
     228      owl_message *m = g_new(owl_message, 1);
    234229      owl_message_create_from_zwrite(m, z, owl_zwrite_get_message(z), i);
    235230
     
    378373  owl_function_makemsg("Waiting for ack...");
    379374
    380   /* create the outgoing message */
    381   owl_function_add_outgoing_zephyrs(z);
     375  /* If it's personal */
     376  if (owl_zwrite_is_personal(z)) {
     377    /* create the outgoing message */
     378    owl_function_add_outgoing_zephyrs(z);
     379  }
    382380}
    383381#else
     
    429427  owl_function_makemsg("Waiting for ack...");
    430428
    431   /* Create the outgoing message. Restore the un-crypted message for display. */
    432   owl_zwrite_set_message_raw(z, old_msg);
    433   owl_function_add_outgoing_zephyrs(z);
    434 
    435   /* Clean up. */
     429  /* If it's personal */
     430  if (owl_zwrite_is_personal(z)) {
     431    /* Create the outgoing message. Restore the un-crypted message for display. */
     432    owl_zwrite_set_message_raw(z, old_msg);
     433    owl_function_add_outgoing_zephyrs(z);
     434  }
     435
     436  /* free the zwrite */
    436437  g_free(cryptmsg);
    437   g_free(old_msg);
    438438}
    439439
Note: See TracChangeset for help on using the changeset viewer.