mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
change: specific report copy for DMs
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
"action_report" = "Report";
|
||||
"action_report_bug" = "Report bug";
|
||||
"action_report_content" = "Report content";
|
||||
"action_report_dm" = "Report conversation";
|
||||
"action_report_room" = "Report room";
|
||||
"action_reset" = "Reset";
|
||||
"action_reset_identity" = "Reset identity";
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
"action_report" = "Report";
|
||||
"action_report_bug" = "Report bug";
|
||||
"action_report_content" = "Report content";
|
||||
"action_report_dm" = "Report conversation";
|
||||
"action_report_room" = "Report room";
|
||||
"action_reset" = "Reset";
|
||||
"action_reset_identity" = "Reset identity";
|
||||
|
||||
@@ -236,6 +236,8 @@ internal enum L10n {
|
||||
internal static var actionReportBug: String { return L10n.tr("Localizable", "action_report_bug") }
|
||||
/// Report content
|
||||
internal static var actionReportContent: String { return L10n.tr("Localizable", "action_report_content") }
|
||||
/// Report conversation
|
||||
internal static var actionReportDm: String { return L10n.tr("Localizable", "action_report_dm") }
|
||||
/// Report room
|
||||
internal static var actionReportRoom: String { return L10n.tr("Localizable", "action_report_room") }
|
||||
/// Reset
|
||||
|
||||
@@ -215,7 +215,7 @@ extension HomeScreenRoom {
|
||||
|
||||
let hasUnreadMessages = hideUnreadMessagesBadge ? false : summary.hasUnreadMessages
|
||||
let isUnseenInvite = summary.joinRequestType?.isInvite == true && !seenInvites.contains(roomID)
|
||||
|
||||
|
||||
let isDotShown = hasUnreadMessages || summary.hasUnreadMentions || summary.hasUnreadNotifications || summary.isMarkedUnread || isUnseenInvite
|
||||
let isMentionShown = summary.hasUnreadMentions && !summary.isMuted
|
||||
let isMuteShown = summary.isMuted
|
||||
|
||||
@@ -73,7 +73,7 @@ struct HomeScreenRoomList: View {
|
||||
Button(role: .destructive) {
|
||||
context.send(viewAction: .reportRoom(roomIdentifier: room.id))
|
||||
} label: {
|
||||
Label(L10n.actionReportRoom, icon: \.chatProblem)
|
||||
Label(room.isDirect ? L10n.actionReportDm : L10n.actionReportRoom, icon: \.chatProblem)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ struct RoomDetailsScreen: View {
|
||||
}
|
||||
|
||||
private var reportRoomTitle: String {
|
||||
context.viewState.dmRecipientInfo == nil ? L10n.actionReportRoom : L10n.actionReport
|
||||
context.viewState.dmRecipientInfo == nil ? L10n.actionReportRoom : L10n.actionReportDm
|
||||
}
|
||||
|
||||
private var leaveRoomSection: some View {
|
||||
|
||||
Reference in New Issue
Block a user