Add Roster.setRosterLoadedAtLoginDefault(boolean)

Fixes SMACK-715
This commit is contained in:
Florian Schmaus 2016-02-17 09:22:40 +01:00
parent cf3024668e
commit e6db731810
1 changed files with 12 additions and 0 deletions

View File

@ -896,6 +896,18 @@ public class Roster extends Manager {
}
}
/**
* Sets if the roster will be loaded from the server when logging in for newly created instances
* of {@link Roster}.
*
* @param rosterLoadedAtLoginDefault if the roster will be loaded from the server when logging in.
* @see #setRosterLoadedAtLogin(boolean)
* @since 4.1.7
*/
public static void setRosterLoadedAtLoginDefault(boolean rosterLoadedAtLoginDefault) {
Roster.rosterLoadedAtLoginDefault = rosterLoadedAtLoginDefault;
}
/**
* Sets if the roster will be loaded from the server when logging in. This
* is the common behaviour for clients but sometimes clients may want to differ this