I realised that updateChatPosition does will not include anything with chatListFolder, if use_message_database is set to true, when send setTdlibParameters.
However, it only happens after the first time that message db is used.
For example,
use_message_database is set to false. Use as per normal. Quit the app.
use_message_database is set to true. Use as per normal. Quit the app.
use_message_database is still set to true. Use as per normal, observe that updateChatPosition will not include anything relating to chatListFolder.
I assume by the third launch in the above scenario, it is cached in the db, and as a result, chatListFolder positions are some how gone.
All launches are fine if use_message_database is always set to false.
Tested with watchOS 9.5, compiled TDLib is 1.8.14, albeit not the latest commit.
I realised that
updateChatPosition
does will not include anything withchatListFolder
, ifuse_message_database
is set to true, when sendsetTdlibParameters
.However, it only happens after the first time that message db is used.
For example,
use_message_database
is set tofalse
. Use as per normal. Quit the app.use_message_database
is set totrue
. Use as per normal. Quit the app.use_message_database
is still set totrue
. Use as per normal, observe that updateChatPosition will not include anything relating tochatListFolder
.I assume by the third launch in the above scenario, it is cached in the db, and as a result,
chatListFolder
positions are some how gone.All launches are fine if
use_message_database
is always set tofalse
.Tested with watchOS 9.5, compiled TDLib is 1.8.14, albeit not the latest commit.