Replies timeline in desktop client

merge-requests/30/head
Bob Mottram 2021-03-19 15:39:16 +00:00
parent 2c33d55b45
commit e1eab5ab24
1 changed files with 6 additions and 2 deletions

View File

@ -581,7 +581,11 @@ def _desktopShowBox(boxName: str, boxJson: {},
_desktopShowBanner() _desktopShowBanner()
notificationIcons = '' notificationIcons = ''
titleStr = '\33[7m' + boxName.upper() + '\33[0m' if boxName.startswith('tl'):
titleStr = boxName[2:]
else:
titleStr = boxName
titleStr = '\33[7m' + titleStr.upper() + '\33[0m'
# titleStr += ' page ' + str(pageNumber) # titleStr += ' page ' + str(pageNumber)
if notificationIcons: if notificationIcons:
while len(titleStr) < 95 - len(notificationIcons): while len(titleStr) < 95 - len(notificationIcons):
@ -984,7 +988,7 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
elif commandStr.startswith('show rep'): elif commandStr.startswith('show rep'):
pageNumber = 1 pageNumber = 1
prevTimelineFirstId = '' prevTimelineFirstId = ''
currTimeline = 'replies' currTimeline = 'tlreplies'
boxJson = c2sBoxJson(baseDir, session, boxJson = c2sBoxJson(baseDir, session,
nickname, password, nickname, password,
domain, port, httpPrefix, domain, port, httpPrefix,