Changeset 7c5d060


Ignore:
Timestamp:
May 19, 2010, 10:33:40 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
5e24227
Parents:
3aa0522
git-author:
Anders Kaseorg <andersk@mit.edu> (05/19/10 18:43:59)
git-committer:
Anders Kaseorg <andersk@mit.edu> (05/19/10 22:33:40)
Message:
Jabber: Set long_sender in a MUC to the full sender JID (from presence).

Currently the long_sender of a MUC message just duplicates the context
and sender.
  sipb@conference.mit.edu / subject / andersk  17:17  (sipb@conference.mit.edu/andersk)

Change it to look up the sender’s JID from the MUC presence, if
possible:
  sipb@conference.mit.edu / subject / andersk  17:17  (andersk@mit.edu/barnowl)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm

    rebfcc87 r7c5d060  
    12251225        $completion_jids{$room} = 1;
    12261226
     1227        my $muc;
     1228        if ($dir eq 'in') {
     1229            my $connection = $conn->getConnectionFromSid($props{sid});
     1230            $muc = $connection->FindMUC(jid => $from);
     1231        } else {
     1232            my $connection = $conn->getConnectionFromJID($props{from});
     1233            $muc = $connection->FindMUC(jid => $to);
     1234        }
     1235        $props{from} = $muc->GetFullJID($from) || $nick || $room;
    12271236        $props{sender} = $nick || $room;
    12281237        $props{recipient} = $room;
Note: See TracChangeset for help on using the changeset viewer.