fix avatar update on timeline sync

This commit is contained in:
Jedi18 2021-02-11 23:50:45 +05:30
parent a7d7d18e92
commit f044e2d2a1
7 changed files with 13 additions and 9 deletions

View file

@ -395,7 +395,6 @@ RoomSettings::updateAvatar()
// be queued back into the UI thread through this proxy object.
auto proxy = std::make_shared<ThreadProxy>();
connect(proxy.get(), &ThreadProxy::error, this, &RoomSettings::displayError);
connect(proxy.get(), &ThreadProxy::avatarChanged, this, &RoomSettings::avatarChanged);
connect(proxy.get(), &ThreadProxy::stopLoading, this, &RoomSettings::stopLoading);
const auto bin = file.peek(file.size());
@ -445,7 +444,6 @@ RoomSettings::updateAvatar()
}
emit proxy->stopLoading();
emit proxy->avatarChanged();
});
});
}