From a85d46aff547a1007beb32b01d1dfab68a2115b4 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Fri, 22 May 2009 13:30:03 -0700 Subject: [PATCH] add Gservices setting for "send message using bareJid timeout". --- core/java/android/provider/Settings.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index bd4597850e18e..559f224d12631 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2592,6 +2592,16 @@ public final class Settings { */ public static final String GTALK_COMPRESS = "gtalk_compress"; + /** + * This is the timeout for which Google Talk will send the message using bareJID. In a + * established chat between two XMPP endpoints, Google Talk uses fullJID in the format + * of user@domain/resource in order to send the message to the specific client. However, + * if Google Talk hasn't received a message from that client after some time, it would + * fall back to use the bareJID, which would broadcast the message to all clients for + * the other user. + */ + public static final String GTALK_USE_BARE_JID_TIMEOUT_MS = "gtalk_use_barejid_timeout_ms"; + /** * Enable use of ssl session caching. * 'db' - save each session in a (per process) database