diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/generator')
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/AbstractGenerator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/AbstractGenerator.java b/src/main/java/de/pixart/messenger/generator/AbstractGenerator.java index 33ce81859..5800db73e 100644 --- a/src/main/java/de/pixart/messenger/generator/AbstractGenerator.java +++ b/src/main/java/de/pixart/messenger/generator/AbstractGenerator.java @@ -16,6 +16,7 @@ import de.pixart.messenger.Config; import de.pixart.messenger.R; import de.pixart.messenger.crypto.axolotl.AxolotlService; import de.pixart.messenger.services.XmppConnectionService; +import de.pixart.messenger.utils.Namespace; import de.pixart.messenger.utils.PhoneHelper; import de.pixart.messenger.xmpp.jingle.stanzas.Content; @@ -118,6 +119,9 @@ public abstract class AbstractGenerator { if (Config.supportOtr()) { features.addAll(Arrays.asList(OTR)); } + if (mXmppConnectionService.broadcastLastActivity()) { + features.add(Namespace.IDLE); + } Collections.sort(features); return features; } |