Skip to content

close current chat after it has been removed from the pageStack

Michele requested to merge close_current_chat into master

Close the current chat only after it has been removed from the pageStack listening for the removed() signal.

I still get this in the log

qml: Closing current chat...
qrc:/pages/MessageListPage.qml:640: TypeError: Cannot read property 'replyMarkupMessageId' of null
qrc:/pages/MessageListPage.qml:465: TypeError: Cannot read property 'draftMessage' of null
qrc:/pages/MessageListPage.qml:355: TypeError: Cannot read property 'isWritable' of null
qrc:/pages/MessageListPage.qml:330: TypeError: Cannot read property 'isWritable' of null
qrc:/pages/MessageListPage.qml:332: TypeError: Cannot read property 'isChannel' of null
qrc:/pages/MessageListPage.qml:19: TypeError: Cannot read property 'currentMessageIndex' of null
qrc:/pages/MessageListPage.qml:224: TypeError: Cannot read property 'isSecret' of null
qrc:/pages/MessageListPage.qml:107: TypeError: Cannot read property 'isSecret' of null
qrc:/pages/MessageListPage.qml:65: TypeError: Cannot read property 'chatPhoto' of null
qrc:/pages/MessageListPage.qml:73: TypeError: Cannot call method 'avatarColor' of null

And this because those lines call Telegram.chats.currentChat

Edited by Michele

Merge request reports