Enabled NotificationSettings by default, Fix spacing, use activeMemberCount for isOneToOne.

- Enabled Notification Settings by default
- Fix spacing
- Use activeMemberCount for isOneToOne
This commit is contained in:
David Langley 2023-09-13 14:18:28 +01:00
parent 48e24a0b6a
commit 5e8cb958f8
5 changed files with 4 additions and 7 deletions

View file

@ -53,7 +53,7 @@ interface MatrixRoom : Closeable {
* A one-to-one is a room with exactly 2 members.
* See [the Matrix spec](https://spec.matrix.org/latest/client-server-api/#default-underride-rules).
*/
val isOneToOne: Boolean get() = joinedMemberCount == 2L
val isOneToOne: Boolean get() = activeMemberCount == 2L
/**
* The current loaded members as a StateFlow.