Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve content report #1090

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading