Skip to content

Commit

Permalink
Improve content report (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Aug 1, 2024
1 parent f3ea080 commit ecc2dd5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions changelog.d/1083.improvements
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Amélioration du parcours de signalement de contenu.
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "2.13.1"
version = "2.13.2"
directory = "changelog.d"
filename = "TCHAP_CHANGES.md"
name = "Changes in Tchap"
Expand Down
2 changes: 1 addition & 1 deletion vector-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ext.versionMinor = 13
// Note: even values are reserved for regular release, odd values for hotfix release.
// When creating a hotfix, you should decrease the value, since the current value
// is the value for the next regular release.
ext.versionPatch = 1
ext.versionPatch = 2

static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sealed class EventSharedAction(
EventSharedAction(CommonStrings.report_content_inappropriate, R.drawable.ic_report_inappropriate)

data class ReportContentCustom(val eventId: String, val senderId: String?) :
EventSharedAction(CommonStrings.report_content_custom, R.drawable.ic_report_custom)
EventSharedAction(CommonStrings.report_content, R.drawable.ic_flag) // TCHAP Use custom report content by default.

data class IgnoreUser(val senderId: String?) :
EventSharedAction(CommonStrings.message_ignore_user, R.drawable.ic_alert_triangle, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,19 @@ class MessageActionsViewModel @AssistedInject constructor(
if (session.myUserId != timelineEvent.root.senderId) {
// not sent by me
if (timelineEvent.root.isContentReportable()) {
add(EventSharedAction.ReportContent(eventId, timelineEvent.root.senderId))
// TCHAP Use custom report content by default.
add(EventSharedAction.ReportContentCustom(eventId, timelineEvent.root.senderId))
}

add(EventSharedAction.Separator)
add(EventSharedAction.IgnoreUser(timelineEvent.root.senderId))
add(
EventSharedAction.ReportUser(
eventId = eventId,
senderId = timelineEvent.root.senderId,
)
)
// TCHAP Hide user report feature in event action list.
// add(
// EventSharedAction.ReportUser(
// eventId = eventId,
// senderId = timelineEvent.root.senderId,
// )
// )
}
}

Expand Down
8 changes: 0 additions & 8 deletions vector/src/main/res/drawable/ic_report_custom.xml

This file was deleted.

0 comments on commit ecc2dd5

Please sign in to comment.