Commit e5fb938c authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update RoomFragment.java

parent e840a7f3
...@@ -102,7 +102,6 @@ public class RoomFragment extends AbstractChatRoomFragment implements ...@@ -102,7 +102,6 @@ public class RoomFragment extends AbstractChatRoomFragment implements
private String token; private String token;
private String userId; private String userId;
private String roomId; private String roomId;
private String roomName;
private String roomType; private String roomType;
private LoadMoreScrollListener scrollListener; private LoadMoreScrollListener scrollListener;
private MessageFormManager messageFormManager; private MessageFormManager messageFormManager;
...@@ -561,9 +560,8 @@ public class RoomFragment extends AbstractChatRoomFragment implements ...@@ -561,9 +560,8 @@ public class RoomFragment extends AbstractChatRoomFragment implements
@Override @Override
public void render(Room room) { public void render(Room room) {
roomName = room.getName();
roomType = room.getType(); roomType = room.getType();
setToolbarTitle(roomName); setToolbarTitle(room.getName());
boolean unreadMessageExists = room.isAlert(); boolean unreadMessageExists = room.isAlert();
if (newMessageIndicatorManager != null && previousUnreadMessageExists && !unreadMessageExists) { if (newMessageIndicatorManager != null && previousUnreadMessageExists && !unreadMessageExists) {
...@@ -657,7 +655,8 @@ public class RoomFragment extends AbstractChatRoomFragment implements ...@@ -657,7 +655,8 @@ public class RoomFragment extends AbstractChatRoomFragment implements
} }
fragmentTransaction.addToBackStack(null); fragmentTransaction.addToBackStack(null);
DialogFragment roomDialogFragment = RoomDialogFragment.Companion.newInstance(roomId, roomName, roomType, DialogFragment roomDialogFragment = RoomDialogFragment.Companion.newInstance(roomId,
roomType,
hostname, hostname,
token, token,
userId, userId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment