mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-27 06:35:37 +01:00
Update last messages when coming to a screen
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
d328332d70
commit
bb4252bdbf
@ -152,20 +152,9 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
getActionBar().show();
|
getActionBar().show();
|
||||||
}
|
}
|
||||||
|
|
||||||
currentUser = userUtils.getCurrentUser();
|
|
||||||
|
|
||||||
if (currentUser != null) {
|
|
||||||
credentials = ApiUtils.getCredentials(currentUser.getUserId(), currentUser.getToken());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (adapter == null) {
|
if (adapter == null) {
|
||||||
adapter = new FlexibleAdapter<>(callItems, getActivity(), false);
|
adapter = new FlexibleAdapter<>(callItems, getActivity(), false);
|
||||||
|
|
||||||
if (currentUser != null) {
|
|
||||||
shouldUseLastMessageLayout = currentUser.hasSpreedCapabilityWithName("last-room-activity");
|
|
||||||
|
|
||||||
fetchData(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
adapter.addListener(this);
|
adapter.addListener(this);
|
||||||
@ -179,6 +168,18 @@ public class ConversationsListController extends BaseController implements Searc
|
|||||||
if (getActionBar() != null) {
|
if (getActionBar() != null) {
|
||||||
getActionBar().setDisplayHomeAsUpEnabled(false);
|
getActionBar().setDisplayHomeAsUpEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentUser = userUtils.getCurrentUser();
|
||||||
|
|
||||||
|
if (currentUser != null) {
|
||||||
|
credentials = ApiUtils.getCredentials(currentUser.getUserId(), currentUser.getToken());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (currentUser != null) {
|
||||||
|
shouldUseLastMessageLayout = currentUser.hasSpreedCapabilityWithName("last-room-activity");
|
||||||
|
|
||||||
|
fetchData(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user