aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2012-02-13 08:44:22 +0000
committerDamian Minkov <damencho@jitsi.org>2012-02-13 08:44:22 +0000
commit94be44cff1322db22885921a5042ec15c90925fa (patch)
treed499fe620c38b850fbb2fe5e9cd7d9b852964153 /src/net/java/sip/communicator/impl
parente122a6073f402ea378af0a0ccc7fe5f48c125471 (diff)
downloadjitsi-94be44cff1322db22885921a5042ec15c90925fa.zip
jitsi-94be44cff1322db22885921a5042ec15c90925fa.tar.gz
jitsi-94be44cff1322db22885921a5042ec15c90925fa.tar.bz2
Stops sending typing notifications if contact is offline.
Diffstat (limited to 'src/net/java/sip/communicator/impl')
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java b/src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java
index d80959b..e3e0b83 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/MetaContactChatTransport.java
@@ -387,7 +387,11 @@ public class MetaContactChatTransport
= protocolProvider
.getOperationSet(OperationSetTypingNotifications.class);
- if(protocolProvider.isRegistered())
+ // if protocol is not registered or contact is offline don't
+ // try to send typing notifications
+ if(protocolProvider.isRegistered()
+ && contact.getPresenceStatus().getStatus()
+ >= PresenceStatus.ONLINE_THRESHOLD)
{
try
{