mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 07:42:06 +01:00
Merge branch '4.1'
This commit is contained in:
commit
194717d75b
2 changed files with 12 additions and 2 deletions
|
@ -131,9 +131,8 @@ public class Time extends IQ {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
|
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
|
||||||
buf.rightAngleBracket();
|
|
||||||
|
|
||||||
if (utc != null) {
|
if (utc != null) {
|
||||||
|
buf.rightAngleBracket();
|
||||||
buf.append("<utc>").append(utc).append("</utc>");
|
buf.append("<utc>").append(utc).append("</utc>");
|
||||||
buf.append("<tzo>").append(tzo).append("</tzo>");
|
buf.append("<tzo>").append(tzo).append("</tzo>");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1465,8 +1465,19 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
* Set if Stream Management resumption should be used by default for new connections.
|
* Set if Stream Management resumption should be used by default for new connections.
|
||||||
*
|
*
|
||||||
* @param useSmResumptionDefault true to use Stream Management resumption for new connections.
|
* @param useSmResumptionDefault true to use Stream Management resumption for new connections.
|
||||||
|
* @deprecated use {@link #setUseStreamManagementResumptionDefault(boolean)} instead.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void setUseStreamManagementResumptiodDefault(boolean useSmResumptionDefault) {
|
public static void setUseStreamManagementResumptiodDefault(boolean useSmResumptionDefault) {
|
||||||
|
setUseStreamManagementDefault(useSmResumptionDefault);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set if Stream Management resumption should be used by default for new connections.
|
||||||
|
*
|
||||||
|
* @param useSmResumptionDefault true to use Stream Management resumption for new connections.
|
||||||
|
*/
|
||||||
|
public static void setUseStreamManagementResumptionDefault(boolean useSmResumptionDefault) {
|
||||||
if (useSmResumptionDefault) {
|
if (useSmResumptionDefault) {
|
||||||
// Also enable SM is resumption is enabled
|
// Also enable SM is resumption is enabled
|
||||||
setUseStreamManagementDefault(useSmResumptionDefault);
|
setUseStreamManagementDefault(useSmResumptionDefault);
|
||||||
|
|
Loading…
Reference in a new issue