Connection: Fix a race condition in direct chats handling upon initial sync
Connection: Fix a race condition in direct chats handling upon initial sync

Closes #323.

QMatrixClient/libqmatrixclient,QMatrixClient/libqmatrixclient