mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
Code review
This commit is contained in:
parent
94f88c80fc
commit
e5de62b57c
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ internal class RoomSummaryUpdater @Inject constructor(
|
||||||
.map { parentInfo ->
|
.map { parentInfo ->
|
||||||
// Is it a valid parent relation?
|
// Is it a valid parent relation?
|
||||||
// Check if it's a child of the parent?
|
// Check if it's a child of the parent?
|
||||||
var isValidRelation = false
|
val isValidRelation: Boolean
|
||||||
val parent = lookupMap.firstNotNullOfOrNull { if (it.key.roomId == parentInfo.roomId) it.value else null }
|
val parent = lookupMap.firstNotNullOfOrNull { if (it.key.roomId == parentInfo.roomId) it.value else null }
|
||||||
if (parent?.firstOrNull { it.roomId == lookedUp.roomId } != null) {
|
if (parent?.firstOrNull { it.roomId == lookedUp.roomId } != null) {
|
||||||
// there is a corresponding m.space.child event in the claimed parent
|
// there is a corresponding m.space.child event in the claimed parent
|
||||||
|
|
Loading…
Reference in a new issue