Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions apclient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,6 @@ class APClient {
_hasPassword = command.value("password", false);
_commandPermissions = command.value("permissions", std::map<std::string, Permission>{});
if (_state < State::ROOM_INFO) _state = State::ROOM_INFO;
if (_hOnRoomInfo) _hOnRoomInfo();

// check if cached data package is already valid
// if not, build a list to query
Expand Down Expand Up @@ -1462,8 +1461,14 @@ class APClient {

if (!exclude.empty())
_set_data_package(_dataPackage); // apply loaded strings
if (!_dataPackageValid) GetDataPackage(include);
else debug("Data package up to date");

if (_hOnRoomInfo)
_hOnRoomInfo();

if (!_dataPackageValid)
GetDataPackage(include);
else
debug("Data package up to date");
}
else if (cmd == "ConnectionRefused") {
if (_hOnSlotRefused) {
Expand Down
Loading