Adding icons to UserProfile
This commit is contained in:
parent
08028d5c57
commit
1103cc15cf
9 changed files with 164 additions and 81 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "UserProfile.h"
|
||||
#include "Cache.h"
|
||||
#include "ChatPage.h"
|
||||
#include "DeviceVerificationFlow.h"
|
||||
#include "Logging.h"
|
||||
#include "Utils.h"
|
||||
#include "mtx/responses/crypto.hpp"
|
||||
|
|
@ -122,10 +123,10 @@ UserProfile::callback_fn(const mtx::responses::QueryKeys &res,
|
|||
verified});
|
||||
}
|
||||
|
||||
// std::sort(
|
||||
// deviceInfo.begin(), deviceInfo.end(), [](const DeviceInfo &a, const DeviceInfo &b) {
|
||||
// return a.device_id > b.device_id;
|
||||
// });
|
||||
std::sort(
|
||||
deviceInfo.begin(), deviceInfo.end(), [](const DeviceInfo &a, const DeviceInfo &b) {
|
||||
return a.device_id > b.device_id;
|
||||
});
|
||||
|
||||
this->deviceList_.queueReset(std::move(deviceInfo));
|
||||
}
|
||||
|
|
@ -176,4 +177,4 @@ UserProfile::startChat()
|
|||
if (utils::localUser() != this->userid_)
|
||||
req.invite = {this->userid_.toStdString()};
|
||||
emit ChatPage::instance()->createRoom(req);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue