You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenter.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ class DefaultActionListPresenter @AssistedInject constructor(
169
169
if (timelineItem.isRemote && timelineItem.content.canBeForwarded()) {
170
170
add(TimelineItemAction.Forward)
171
171
}
172
-
if (timelineItem.isEditable) {
172
+
if (timelineItem.isEditable&& usersEventPermissions.canSendMessage) {
173
173
if (timelineItem.content isTimelineItemEventContentWithAttachment) {
Copy file name to clipboardExpand all lines: features/messages/impl/src/test/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenterTest.kt
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -525,6 +525,51 @@ class ActionListPresenterTest {
525
525
}
526
526
}
527
527
528
+
@Test
529
+
fun`present - compute for my message no permission `() = runTest {
530
+
val presenter = createActionListPresenter(isDeveloperModeEnabled =true, isPinFeatureEnabled =true)
0 commit comments