Skip to content

Commit 1b4b479

Browse files
committed
Merge branch 'sushmey-dev-branch' of https://github.com/Sushmey/zulip-terminal into sushmey-same-username-userid-branch
2 parents 7f4221f + fe525bd commit 1b4b479

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

zulipterminal/model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,9 +1151,7 @@ def user_name_count(self, user_name: str) -> int:
11511151
"""
11521152
Returns the count of the users with the same name as the given name.
11531153
"""
1154-
if not self.user_name_dict_count[user_name]:
1155-
return -1
1156-
return self.user_name_dict_count[user_name]
1154+
return self.user_name_dict_count.get(user_name, -1)
11571155

11581156
def _subscribe_to_streams(self, subscriptions: List[Subscription]) -> None:
11591157
def make_reduced_stream_data(stream: Subscription) -> StreamData:

0 commit comments

Comments
 (0)