mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01: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
0e64cd56f7
commit
03d33731fd
@ -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 New Issue
Block a user