New direct chat: selecting several participants was not adding the room to the direct chats list

This commit is contained in:
Benoit Marty 2020-02-26 07:38:10 +01:00
parent fc95bf4926
commit 67180fd8db
2 changed files with 1 additions and 16 deletions

View File

@ -21,6 +21,7 @@ Bugfix 🐛:
- Leaving a room creates a stuck "leaving room" loading screen. (#1041)
- Fix some invitation handling issues (#1013)
- New direct chat: selecting a participant sometimes results in two breadcrumbs (#1022)
- New direct chat: selecting several participants was not adding the room to the direct chats list
Translations 🗣:
-

View File

@ -216,20 +216,6 @@ data class CreateRoomParams(
)
}
/**
* @return the invite count
*/
private fun getInviteCount(): Int {
return invitedUserIds?.size ?: 0
}
/**
* @return the pid invite count
*/
private fun getInvite3PidCount(): Int {
return invite3pids?.size ?: 0
}
/**
* Tells if the created room can be a direct chat one.
*
@ -238,8 +224,6 @@ data class CreateRoomParams(
fun isDirect(): Boolean {
return preset == CreateRoomPreset.PRESET_TRUSTED_PRIVATE_CHAT
&& isDirect == true
// TODO This test is not ok
&& (1 == getInviteCount() || 1 == getInvite3PidCount())
}
/**