aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl
diff options
context:
space:
mode:
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
{