mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-26 20:34:44 +01:00
Follow-up (#1950)
This commit is contained in:
parent
905415ccff
commit
abd05dc798
@ -106,7 +106,7 @@ const ChatList: FC<OwnProps> = ({
|
||||
if (!digit) return;
|
||||
|
||||
const position = Number(digit) - 1;
|
||||
if (position > orderedIds!.length - 1) return;
|
||||
if (position > orderedIds!.length - 1 || position < 0) return;
|
||||
|
||||
openChat({ id: orderedIds![position], shouldReplaceHistory: true });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user