[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:23:24 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=30f42a4

The following commit has been merged in the master branch:
commit 30f42a4b46b0cd345e9efac56895a72eebbca868
Author: Lasath Fernando <kde at lasath.org>
Date:   Sun Mar 3 15:24:52 2013 +1100

    Make ChatWidget call KTp::MessageProcessor::preprocessMessage()
    
    Naturally, it doesn't really do anything since there are no filters that
    deal with outgoing messages.
    
    However, the debug info from the default implementation of
    filterOutgoingMessage() shows up, so all good so far.
---
 lib/chat-widget.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 33136ee..533ee21 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -703,9 +703,13 @@ void ChatWidget::sendMessage()
     QString message = d->ui.sendMessageBox->toPlainText();
 
     if (!message.isEmpty()) {
+        message = KTp::MessageProcessor::instance()->preprocessMessage(
+                    message, d->account, d->channel).finalizedMessage();
+
         if (d->channel->supportsMessageType(Tp::ChannelTextMessageTypeAction) && message.startsWith(QLatin1String("/me "))) {
             //remove "/me " from the start of the message
             message.remove(0,4);
+
             d->channel->send(message, Tp::ChannelTextMessageTypeAction);
         } else {
             d->channel->send(message);

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list