We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f4221f + fe525bd commit 1b4b479Copy full SHA for 1b4b479
zulipterminal/model.py
@@ -1151,9 +1151,7 @@ def user_name_count(self, user_name: str) -> int:
1151
"""
1152
Returns the count of the users with the same name as the given name.
1153
1154
- if not self.user_name_dict_count[user_name]:
1155
- return -1
1156
- return self.user_name_dict_count[user_name]
+ return self.user_name_dict_count.get(user_name, -1)
1157
1158
def _subscribe_to_streams(self, subscriptions: List[Subscription]) -> None:
1159
def make_reduced_stream_data(stream: Subscription) -> StreamData:
0 commit comments