diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2015-01-14 23:02:11 +0100 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2015-01-14 23:02:11 +0100 |
commit | e60dcf4f63c0e41a8712a4ce7bdf828ff8780d92 (patch) | |
tree | 27526431ab4dd28928ca4b4cd01b7c64ba27cb20 /src/net/java/sip/communicator/impl/protocol | |
parent | 9fb4c103ada01379008f7331cd29dcd56dfe7c9b (diff) | |
download | jitsi-e60dcf4f63c0e41a8712a4ce7bdf828ff8780d92.zip jitsi-e60dcf4f63c0e41a8712a4ce7bdf828ff8780d92.tar.gz jitsi-e60dcf4f63c0e41a8712a4ce7bdf828ff8780d92.tar.bz2 |
IRC: use content type and encoding from transformed message
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java index ca22ca9..9f33ca8 100644 --- a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetBasicInstantMessagingIrcImpl.java @@ -120,15 +120,14 @@ public class OperationSetBasicInstantMessagingIrcImpl continue; } - String transformedContent = - event.getSourceMessage().getContent(); + final Message transformed = event.getSourceMessage(); // Note: can't set subject since it leaks information while // message content actually did get encrypted. - // FIXME should get contentType and contentEncoding from - // transformed messages, just in case - MessageIrcImpl message = this.createMessage(transformedContent, - original.getContentType(), original.getEncoding(), ""); + MessageIrcImpl message = + this.createMessage(transformed.getContent(), + transformed.getContentType(), + transformed.getEncoding(), ""); try { |