diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-18 12:44:33 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-18 12:44:33 +0200 |
commit | 6b74c0594e95dcedfdbeeb33ef7bdd8b52c1093e (patch) | |
tree | 6c1333aa62a68409d28f9663d4d0887d856202e8 /src/eu/siacs/conversations/entities | |
parent | 38a9242955704232039272fd8b6011d47622495d (diff) |
show snackbar if conference was not found
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/entities/MucOptions.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/entities/MucOptions.java b/src/eu/siacs/conversations/entities/MucOptions.java index 766300ff..0bb9b295 100644 --- a/src/eu/siacs/conversations/entities/MucOptions.java +++ b/src/eu/siacs/conversations/entities/MucOptions.java @@ -10,7 +10,9 @@ import android.annotation.SuppressLint; @SuppressLint("DefaultLocale") public class MucOptions { + public static final int ERROR_NO_ERROR = 0; public static final int ERROR_NICK_IN_USE = 1; + public static final int ERROR_ROOM_NOT_FOUND = 2; public interface OnRenameListener { public void onRename(boolean success); @@ -82,7 +84,7 @@ public class MucOptions { private ArrayList<User> users = new ArrayList<User>(); private Conversation conversation; private boolean isOnline = false; - private int error = 0; + private int error = ERROR_ROOM_NOT_FOUND; private OnRenameListener renameListener = null; private boolean aboutToRename = false; private User self = new User(); @@ -126,7 +128,7 @@ public class MucOptions { user.setName(name); if (name.equals(this.joinnick)) { this.isOnline = true; - this.error = 0; + this.error = ERROR_NO_ERROR; self = user; if (aboutToRename) { if (renameListener!=null) { |