diff options
author | Symphorien Wanko <wsympho@gmail.com> | 2008-02-07 10:13:32 +0000 |
---|---|---|
committer | Symphorien Wanko <wsympho@gmail.com> | 2008-02-07 10:13:32 +0000 |
commit | 3c43fec570bf08c68544acc29c5ac7e4af8589a7 (patch) | |
tree | c87642412eb06beca569d653108fe9b859adbb8b /src/net/java/sip/communicator/impl/systray/jdic | |
parent | 0238fc176a2d9276fe74420e5bc5a364e3c52dfe (diff) | |
download | jitsi-3c43fec570bf08c68544acc29c5ac7e4af8589a7.zip jitsi-3c43fec570bf08c68544acc29c5ac7e4af8589a7.tar.gz jitsi-3c43fec570bf08c68544acc29c5ac7e4af8589a7.tar.bz2 |
Yahoo: fix yahoo decorated messages handling
Systray: remove html code in the message displayed from the systray
Diffstat (limited to 'src/net/java/sip/communicator/impl/systray/jdic')
-rw-r--r-- | src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java b/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java index c4246b6..96bd847 100644 --- a/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java +++ b/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java @@ -323,6 +323,9 @@ public class SystrayServiceJdicImpl else if (messageType == SystrayService.WARNING_MESSAGE_TYPE) trayMsgType = TrayIcon.WARNING_MESSAGE_TYPE; + // remove eventual html code before showing the popup message + messageContent = messageContent.replaceAll("</?\\w++[^>]*+>", ""); + if(messageContent.length() > 40) messageContent = messageContent.substring(0, 40).concat("..."); |