Skip to content

Commit 65ebe4e

Browse files
committed
refactor: Replace 'pm' with 'dm' (2).
1 parent 3c5d412 commit 65ebe4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/developer-feature-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This tutorial shows how typing indicator was implemented in the client. The process for adding a new feature to zulip terminal varies greatly depending on the feature. This tutorial is intended to make you familiar with the general process.
44

5-
Since the typing indicator data for the other user in pm cannot be generated locally, it should be received from the client.
5+
Since the typing indicator data for the other user in dm cannot be generated locally, it should be received from the client.
66

77
A quick google search for `zulip typing indicator` points to https://zulip.readthedocs.io/en/latest/subsystems/typing-indicators.html. This document explains how typing indicator is implemented on the web client and is useful in understanding how typing indicator works internally.
88

zulipterminal/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,9 @@ def classify_unread_counts(model: Any) -> UnreadCounts:
498498
mentions_count = len(unread_msg_counts["mentions"])
499499
unread_counts["all_mentions"] += mentions_count
500500

501-
for pm in unread_msg_counts["pms"]:
502-
count = len(pm["unread_message_ids"])
503-
unread_counts["unread_pms"][pm["sender_id"]] = count
501+
for dm in unread_msg_counts["pms"]:
502+
count = len(dm["unread_message_ids"])
503+
unread_counts["unread_pms"][dm["sender_id"]] = count
504504
unread_counts["all_msg"] += count
505505
unread_counts["all_pms"] += count
506506

0 commit comments

Comments
 (0)