[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:24:08 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=d9db5fd
The following commit has been merged in the master branch:
commit d9db5fdce1de44fc509526a887f336a81e8b4f17
Author: Frank Meerkoetter <frank at meerkoetter.org>
Date: Sun Sep 8 12:35:45 2013 +0000
Jabber groupchat: Do not display the full jid - display the room name
ktp-text-ui is currently using the full jid as title (instead of the real room name) of chat-widgets.
This is taking up a lot of screen-real-estate (someroom at conference.jabbber.ccc.de vs. someroom).
If I open ~3 chatrooms i am forced to constantly screen through my tabs.
This patch provides a workaround by stripping the host-part from the jid.
A real solution would be to extend TpQt to provide the Room2 channel interface
REVIEW: 112588
---
lib/chat-widget.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 25602ba..71650c2 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -955,7 +955,12 @@ void ChatWidget::initChatArea()
info.setGroupChat(d->isGroupChat);
//normal chat - self and one other person.
if (d->isGroupChat) {
- info.setChatName(d->channel->targetId());
+ // A temporary solution to display a roomname instead of a full jid
+ // This should be reworked as soon as QtTp is offering the
+ // room name property
+ QString roomName = d->channel->targetId();
+ roomName = roomName.left(roomName.indexOf(QLatin1Char('@')));
+ info.setChatName(roomName);
} else {
Tp::ContactPtr otherContact = d->channel->targetContact();
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list