Changeset b43035e for functions.c


Ignore:
Timestamp:
Jan 23, 2012, 6:41:42 PM (12 years ago)
Author:
GitHub Merge Button <merge-button@github.com>
Parents:
d126a19 (diff), bd482c3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merge bd482c3a3acaa8cee4b0527fb21a61c2ed52e4e6 into d126a19eb5f8a883b722fb26d21fb7b62b2aedeb
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    recfbdcc rbd482c3  
    216216void owl_function_add_outgoing_zephyrs(const owl_zwrite *z)
    217217{
    218   if (z->cc || owl_zwrite_get_numrecips(z) == 0) {
     218  if (z->cc && owl_zwrite_is_personal(z)) {
    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
    227232      /* create the message */
    228       owl_message *m = g_new(owl_message, 1);
     233      m = g_new(owl_message, 1);
    229234      owl_message_create_from_zwrite(m, z, owl_zwrite_get_message(z), i);
    230235
     
    373378  owl_function_makemsg("Waiting for ack...");
    374379
    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   }
     380  /* create the outgoing message */
     381  owl_function_add_outgoing_zephyrs(z);
    380382}
    381383#else
     
    427429  owl_function_makemsg("Waiting for ack...");
    428430
    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   }
     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);
    435434
    436435  /* Clean up. */
Note: See TracChangeset for help on using the changeset viewer.