Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1dd0f8c

Browse files
authored
Convert references to direct chat -> direct message (#8694)
1 parent dbd9911 commit 1dd0f8c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Rooms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function looksLikeDirectMessageRoom(room: Room, myUserId: string): boolea
5151
if (myMembership == "join" || myMembership === "ban" || (me && me.isKicked())) {
5252
// Used to split rooms via tags
5353
const tagNames = Object.keys(room.tags);
54-
// Used for 1:1 direct chats
54+
// Used for 1:1 direct messages
5555
// Show 1:1 chats in separate "Direct Messages" section as long as they haven't
5656
// been moved to a different tag section
5757
const totalMemberCount = room.currentState.getJoinedMemberCount() +

src/actions/RoomListActions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export default class RoomListActions {
9090
return Rooms.guessAndSetDMRoom(
9191
room, newTag === DefaultTagID.DM,
9292
).catch((err) => {
93-
logger.error("Failed to set direct chat tag " + err);
94-
Modal.createTrackedDialog('Failed to set direct chat tag', '', ErrorDialog, {
95-
title: _t('Failed to set direct chat tag'),
93+
logger.error("Failed to set DM tag " + err);
94+
Modal.createTrackedDialog('Failed to set direct message tag', '', ErrorDialog, {
95+
title: _t('Failed to set direct message tag'),
9696
description: ((err && err.message) ? err.message : _t('Operation failed')),
9797
});
9898
});

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3352,7 +3352,7 @@
33523352
"Indexed rooms:": "Indexed rooms:",
33533353
"%(doneRooms)s out of %(totalRooms)s": "%(doneRooms)s out of %(totalRooms)s",
33543354
"Message downloading sleep time(ms)": "Message downloading sleep time(ms)",
3355-
"Failed to set direct chat tag": "Failed to set direct chat tag",
3355+
"Failed to set direct message tag": "Failed to set direct message tag",
33563356
"Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room",
33573357
"Failed to add tag %(tagName)s to room": "Failed to add tag %(tagName)s to room",
33583358
"Page Up": "Page Up",

0 commit comments

Comments
 (0)