Remove TYPE_MAP from ChatListModel after #45

This commit is contained in:
Sebastian J. Wolf 2020-10-04 14:21:28 +02:00
parent d4846d5f26
commit b0e995c069
2 changed files with 17 additions and 18 deletions

View file

@ -42,7 +42,6 @@ namespace {
const QString NOTIFICATION_SETTINGS("notification_settings");
const QString LAST_READ_INBOX_MESSAGE_ID("last_read_inbox_message_id");
const QString LAST_READ_OUTBOX_MESSAGE_ID("last_read_outbox_message_id");
const QString TYPE_MAP("type");
const QString IS_CHANNEL("is_channel");
const QString _TYPE("@type");
@ -186,7 +185,7 @@ QString ChatListModel::ChatData::senderMessageText() const
bool ChatListModel::ChatData::isChannel() const
{
return chatData.value(TYPE_MAP).toMap().value(IS_CHANNEL).toBool();
return chatData.value(TYPE).toMap().value(IS_CHANNEL).toBool();
}
bool ChatListModel::ChatData::isHidden() const

View file

@ -337,22 +337,6 @@
<source>sent a venue</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Register User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enter your First Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enter your Last Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Registration</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ImagePage</name>
@ -418,6 +402,22 @@
<source>Please enter your password:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Registration</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enter your First Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Enter your Last Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Register User</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>LocationPreview</name>