Draft: prepare work on tdlib 1.7.0
This fixes the chats list by adding very rudimentary support for chats in multiple lists (it simply ignores all but the first one).
Needs a rebase on tdlib-1.7.0 before it can be reviewed or merged.
Edited by Maciej Sopyło