Add devtools button to account menu
This commit is contained in:
@@ -39,6 +39,9 @@ void StateModel::loadState()
|
||||
{
|
||||
beginResetModel();
|
||||
m_stateEvents.clear();
|
||||
if (!m_room) {
|
||||
return;
|
||||
}
|
||||
const auto keys = m_room->currentState().events().keys();
|
||||
for (const auto &[type, stateKey] : keys) {
|
||||
if (!m_stateEvents.contains(type)) {
|
||||
|
||||
@@ -68,7 +68,7 @@ Q_SIGNALS:
|
||||
void roomChanged();
|
||||
|
||||
private:
|
||||
NeoChatRoom *m_room = nullptr;
|
||||
QPointer<NeoChatRoom> m_room;
|
||||
|
||||
/**
|
||||
* @brief A map from state event type to number of events of that type
|
||||
|
||||
Reference in New Issue
Block a user