mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-28 17:38:55 +03:00
fix to handle invitation panel when userId is the same
with same userId on both servers, the invitation panel could get shown also there were no invitations for the current account Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
8bd5a32f2d
commit
9cff4ac6aa
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ class ConversationsListViewModel @Inject constructor(
|
|||
}
|
||||
|
||||
override fun onNext(invitationsModel: InvitationsModel) {
|
||||
if (invitationsModel.user.userId?.equals(userManager.currentUser.blockingGet().userId) == true) {
|
||||
val currentUser = userManager.currentUser.blockingGet()
|
||||
|
||||
if (invitationsModel.user.userId?.equals(currentUser.userId) == true &&
|
||||
invitationsModel.user.baseUrl?.equals(currentUser.baseUrl) == true
|
||||
) {
|
||||
if (invitationsModel.invitations.isNotEmpty()) {
|
||||
_getFederationInvitationsViewState.value = GetFederationInvitationsSuccessState(true)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue