Changeset eee7294 for protocols


Ignore:
Timestamp:
2016-01-24T13:07:09Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
7616eec
Parents:
1239d05
Message:

jabber: Mark messages from other resources as OPT_SELFMESSAGE too

The jabber_buddy used for messages sent from other resources connected
to the same groupchat has a different ext_jid and it's a different
object than jc->me, so doing a string comparison against acc->user is
needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r1239d05 reee7294  
    479479                bare_jid = jabber_get_bare_jid(bud->ext_jid ? bud->ext_jid : bud->full_jid);
    480480                final_from = bare_jid;
    481                 flags = (bud == jc->me) ? OPT_SELFMESSAGE : 0;
     481                if (bud == jc->me || (g_strcasecmp(final_from, ic->acc->user) == 0)) {
     482                        flags = OPT_SELFMESSAGE;
     483                }
    482484        } else {
    483485                final_from = nick;
Note: See TracChangeset for help on using the changeset viewer.