Add offline status text to the status panel.
*/
package org.jivesoftware.spark;
+import org.jivesoftware.resource.Res;
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.provider.ProviderManager;
@@ -150,6 +151,7 @@ public final class SessionManager implements ConnectionListener {
SwingUtilities.invokeLater( () -> {
preError = Workspace.getInstance().getStatusBar().getPresence();
final Presence presence = new Presence(Presence.Type.unavailable);
+ presence.setStatus(Res.getString("status.offline"));
changePresence(presence);
Workspace.getInstance().getStatusBar().setStatusPanelEnabled(false);
