File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 19
19
STATUS_IDLE = "◒"
20
20
STATUS_OFFLINE = "○"
21
21
STATUS_INACTIVE = "•"
22
- BOT_MARKER = "🤖 "
22
+ BOT_MARKER = "♟ "
23
23
AUTOHIDE_TAB_LEFT_ARROW = "❰"
24
24
AUTOHIDE_TAB_RIGHT_ARROW = "❱"
Original file line number Diff line number Diff line change 4
4
5
5
from zulipterminal .api_types import EditPropagateMode
6
6
from zulipterminal .config .symbols import (
7
+ BOT_MARKER ,
7
8
STATUS_ACTIVE ,
8
9
STATUS_IDLE ,
9
10
STATUS_INACTIVE ,
10
11
STATUS_OFFLINE ,
11
12
STREAM_MARKER_PRIVATE ,
12
13
STREAM_MARKER_PUBLIC ,
13
14
STREAM_MARKER_WEB_PUBLIC ,
14
- BOT_MARKER
15
15
)
16
16
17
17
28
28
"idle" : STATUS_IDLE ,
29
29
"offline" : STATUS_OFFLINE ,
30
30
"inactive" : STATUS_INACTIVE ,
31
- "bot" : BOT_MARKER
31
+ "bot" : BOT_MARKER ,
32
32
}
33
33
34
34
Original file line number Diff line number Diff line change @@ -949,6 +949,15 @@ def get_all_users(self) -> List[Dict[str, Any]]:
949
949
"user_id" : user ["user_id" ],
950
950
"status" : status ,
951
951
}
952
+
953
+ if user ["is_bot" ]:
954
+ self .user_dict [user ["email" ]] = {
955
+ "full_name" : user ["full_name" ],
956
+ "email" : email ,
957
+ "user_id" : user ["user_id" ],
958
+ "status" : "bot" ,
959
+ }
960
+
952
961
self ._all_users_by_id [user ["user_id" ]] = user
953
962
self .user_id_email_dict [user ["user_id" ]] = email
954
963
@@ -984,7 +993,7 @@ def get_all_users(self) -> List[Dict[str, Any]]:
984
993
inactive = [
985
994
properties
986
995
for properties in self .user_dict .values ()
987
- if properties ["status" ] == "inactive"
996
+ if properties ["status" ] == "inactive" or properties [ "status" ] == "bot"
988
997
]
989
998
990
999
# Construct user_list from sorted components of each list
You can’t perform that action at this time.
0 commit comments