chatgui/chatgui-android: уведомления со звуком, флаги и прочие улучшения UI
This commit is contained in:
1 parent
6c857ceab8
commit
0f308fdbd7
20 files changed
+292
-32
No files matched your search
@@ -51,6 +51,7 @@ QVariant MemberListModel::data(const QModelIndex& index, int role) const {
|
||||
QString("%1").arg(it->nodeId, 16, 16, QChar('0'));
|
||||
if (role == Qt::UserRole + 2) return it->isSelf;
|
||||
if (role == Qt::UserRole + 3) return it->flags;
|
||||
if (role == Qt::UserRole + 4) return (bool)it->storage;
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
@@ -94,6 +95,7 @@ static void deserialize_member(const uint8_t* src, MemberListItem& item) {
|
||||
item.rtt = (rtt == 0xFFFF) ? -1 : (int)rtt;
|
||||
int nat = (int)src[13];
|
||||
item.natType = (nat == 0xFF) ? -1 : nat;
|
||||
item.storage = src[14];
|
||||
item.online = (online != 0);
|
||||
|
||||
char name[64];
|
||||
|
||||
Reference in new issue
Block a user