paul-nameless / tg

terminal telegram client
The Unlicense
929 stars 76 forks source link

ns, ng(new secret chat, net group chat) not working #276

Open hawkofsky opened 2 years ago

hawkofsky commented 2 years ago

Nothing changes if I input ns or ng. And in the error log, the follows were genereated

ERROR [2022-05-22 23:50:07,166] controllers.py:776 - handle | Error happend in key handle loop
Traceback (most recent call last):
  File "/home/hawkofsky/.local/lib/python3.8/site-packages/tg/controllers.py", line 770, in handle
    res = fun(self, repeat_factor)  # type: ignore
  File "/home/hawkofsky/.local/lib/python3.8/site-packages/tg/controllers.py", line 56, in _no_repeat_factor
    return fun(self)
  File "/home/hawkofsky/.local/lib/python3.8/site-packages/tg/controllers.py", line 575, in new_secret
    user_ids = self._get_user_ids()
  File "/home/hawkofsky/.local/lib/python3.8/site-packages/tg/controllers.py", line 557, in _get_user_ids
    max(len(user.name) for user in users),
ValueError: max() arg is an empty sequence