Skip to content

Commit 88200b7

Browse files
committed
refactor: Replace 'pm' with 'dm'.
1 parent 7843292 commit 88200b7

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

docs/developer-feature-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ To check for the above conditions, we create a function in `ui.py`:
113113
```python
114114

115115
def handle_typing_event(self, event: Dict['str', Any]) -> None:
116-
# If the user is in pm narrow with the person typing
116+
# If the user is in dm narrow with the person typing
117117
if len(self.model.narrow) == 1 and\
118118
self.model.narrow[0][0] == 'pm_with' and\
119119
event['sender']['email'] in self.model.narrow[0][1].split(','):

docs/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ If you want to show you agree with the current message, type <kbd>+</kbd> to add
138138

139139
Let's try sending a direct message to the author of a message. Select the message you sent to the [#test here](https://chat.zulip.org/#narrow/stream/7-test-here) stream earlier and press <kbd>shift</kbd><kbd>r</kbd> to send a direct message to yourself. Type your message in the message editor that appears at the bottom of the middle column and then type <kbd>ctrl</kbd><kbd>d</kbd> to send. Press the <kbd>shift</kbd><kbd>p</kbd> hotkey as we did earlier in the tutorial to narrow to your direct messages and make sure everything worked properly.
140140

141-
<img src="getting-started-imgs/send-pm.png" width="85%">
141+
<img src="getting-started-imgs/send-dm.png" width="85%">
142142

143143
### Send a Direct Message to Someone New
144144

@@ -159,8 +159,8 @@ Try following the steps above to send a message to the Welcome Bot!
159159

160160
> It's best to use <kbd>ctrl</kbd><kbd>f</kbd> to autocomplete the name and Zulip address of the person (or bot) you want to message; if you just type in their full name, Zulip Terminal does not know for sure who you are trying to send to - and there may be multiple people with that name!
161161
162-
<img src="getting-started-imgs/send-pm-autocomplete1.png" width="85%">
163-
<img src="getting-started-imgs/send-pm-autocomplete2.png" width="85%">
162+
<img src="getting-started-imgs/send-dm-autocomplete1.png" width="85%">
163+
<img src="getting-started-imgs/send-dm-autocomplete2.png" width="85%">
164164

165165
### Create a New Topic
166166

zulipterminal/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ def update_unreads(unreads: Dict[KeyT, int], key: KeyT) -> None:
206206
unread_counts["unread_topics"], (stream_id, message["subject"])
207207
)
208208
update_unreads(unread_counts["streams"], stream_id)
209-
# self-pm has only one display_recipient
209+
# self-dm has only one display_recipient
210210
# 1-1 pms have 2 display_recipient
211211
elif len(message["display_recipient"]) <= 2:
212212
update_unreads(unread_counts["unread_pms"], message["sender_id"])
213-
else: # If it's a group pm
213+
else: # If it's a group dm
214214
update_unreads(
215215
unread_counts["unread_huddles"],
216216
frozenset(

zulipterminal/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ def _handle_typing_event(self, event: Event) -> None:
15681568
sender_email = event["sender"]["email"]
15691569
sender_id = event["sender"]["user_id"]
15701570

1571-
# If the user is in pm narrow with the person typing
1571+
# If the user is in dm narrow with the person typing
15721572
# and the person typing isn't the user themselves
15731573
if (
15741574
len(narrow) == 1

0 commit comments

Comments
 (0)