aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java b/src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java
index 6905df9..7080d13 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/toolBars/MainToolBar.java
@@ -715,14 +715,19 @@ public class MainToolBar
m.put(opSetClass, ct.getProtocolProvider());
UIContactDetailImpl d = new UIContactDetailImpl(
- ct.getName(),
+ ct.getName() + (ct.getResourceName() == null
+ ? ""
+ : "/" + ct.getResourceName()),
ct.getDisplayName(),
null,
- null,
+ (ct.getResourceName() == null
+ ? Arrays.asList(GuiActivator.getResources().getI18NString("service.gui.VIA") + ": "
+ + ct.getProtocolProvider().getAccountID().getAccountAddress())
+ : null),
null,
m,
null,
- ct.getName());
+ ct);
PresenceStatus status = ct.getStatus();
byte[] statusIconBytes = status.getStatusIcon();
@@ -736,7 +741,7 @@ public class MainToolBar
res.add(d);
}
-
+
Point location = new Point(callButton.getX(),
callButton.getY() + callButton.getHeight());