From 2d38786d02cadb670627ede6e8759d06769e1db2 Mon Sep 17 00:00:00 2001 From: Maxime Naturel Date: Mon, 7 Feb 2022 13:51:10 +0100 Subject: [PATCH] Adding TODOs --- .../android/sdk/api/session/room/model/PowerLevelsContent.kt | 1 + .../vector/app/features/autocomplete/AutocompleteMatrixItem.kt | 1 + .../autocomplete/member/AutocompleteMemberPresenter.kt | 3 +++ 3 files changed, 5 insertions(+) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/PowerLevelsContent.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/PowerLevelsContent.kt index 5c46db7166..371fb922e6 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/PowerLevelsContent.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/room/model/PowerLevelsContent.kt @@ -100,6 +100,7 @@ data class PowerLevelsContent( } } + // TODO use this to check if user can notify everyone => compare user role to room permission setting companion object { /** * Key to use for content.notifications and get the level required to trigger an @room notification. Defaults to 50 if unspecified. diff --git a/vector/src/main/java/im/vector/app/features/autocomplete/AutocompleteMatrixItem.kt b/vector/src/main/java/im/vector/app/features/autocomplete/AutocompleteMatrixItem.kt index dba2661927..54d809d948 100644 --- a/vector/src/main/java/im/vector/app/features/autocomplete/AutocompleteMatrixItem.kt +++ b/vector/src/main/java/im/vector/app/features/autocomplete/AutocompleteMatrixItem.kt @@ -30,6 +30,7 @@ import im.vector.app.features.displayname.getBestName import im.vector.app.features.home.AvatarRenderer import org.matrix.android.sdk.api.util.MatrixItem +// TODO create a new item for sections @EpoxyModelClass(layout = R.layout.item_autocomplete_matrix_item) abstract class AutocompleteMatrixItem : VectorEpoxyModel() { diff --git a/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt b/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt index 4976cb39b9..6624a15916 100644 --- a/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt +++ b/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt @@ -72,6 +72,9 @@ class AutocompleteMemberPresenter @AssistedInject constructor(context: Context, .asSequence() .sortedBy { it.displayName } .disambiguate() + // TODO check if user can notify everyone => compare user role to room permission setting + // TODO if user can notify everyone, add entry "@room" + // TODO add header sections to separate members and notification controller.setData(members.toList()) } }