Skip to content

Commit

Permalink
buttons: Support near narrow in handle_narrow.
Browse files Browse the repository at this point in the history
  • Loading branch information
preetmishra committed Jul 23, 2020
1 parent 60b663a commit 1223ad1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zulipterminal/ui_tools/buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ def handle_narrow(self) -> None:
"""
link_split = self.link.split('/')

if '/near/' in self.link:
self.message = {}
self.message['id'] = int(link_split[9])

self.stream_id = int(link_split[5].split('-')[0])

# Return if the concerned stream is unsubscribed.
Expand Down

0 comments on commit 1223ad1

Please sign in to comment.