mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
fixup! linter fixes
This commit is contained in:
parent
10cd106063
commit
492511a2af
3 changed files with 14 additions and 13 deletions
|
@ -2961,7 +2961,7 @@ Cache::roomNamesAndAliases()
|
||||||
};
|
};
|
||||||
|
|
||||||
auto getRoomName = [&](const std::string &roomId) {
|
auto getRoomName = [&](const std::string &roomId) {
|
||||||
auto spaceDb = getStatesDb(txn, roomId);
|
auto spaceDb = getStatesDb(txn, roomId);
|
||||||
auto membersDb = getMembersDb(txn, roomId);
|
auto membersDb = getMembersDb(txn, roomId);
|
||||||
return Cache::getRoomName(txn, spaceDb, membersDb).toStdString();
|
return Cache::getRoomName(txn, spaceDb, membersDb).toStdString();
|
||||||
};
|
};
|
||||||
|
@ -2983,7 +2983,7 @@ Cache::roomNamesAndAliases()
|
||||||
alias = aliases->content.alias;
|
alias = aliases->content.alias;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto parentId = getParentRoomIdsWithTxn(room_id_str);
|
auto parentId = getParentRoomIdsWithTxn(room_id_str);
|
||||||
auto parentName = std::string{};
|
auto parentName = std::string{};
|
||||||
|
|
||||||
if (parentId) {
|
if (parentId) {
|
||||||
|
|
|
@ -65,16 +65,16 @@ UserSettings::load(std::optional<QString> profile)
|
||||||
settings.value("user/timeline/message_hover_highlight", false).toBool();
|
settings.value("user/timeline/message_hover_highlight", false).toBool();
|
||||||
enlargeEmojiOnlyMessages_ =
|
enlargeEmojiOnlyMessages_ =
|
||||||
settings.value("user/timeline/enlarge_emoji_only_msg", false).toBool();
|
settings.value("user/timeline/enlarge_emoji_only_msg", false).toBool();
|
||||||
markdown_ = settings.value("user/markdown_enabled", true).toBool();
|
markdown_ = settings.value("user/markdown_enabled", true).toBool();
|
||||||
invertEnterKey_ = settings.value("user/invert_enter_key", false).toBool();
|
invertEnterKey_ = settings.value("user/invert_enter_key", false).toBool();
|
||||||
bubbles_ = settings.value("user/bubbles_enabled", false).toBool();
|
bubbles_ = settings.value("user/bubbles_enabled", false).toBool();
|
||||||
smallAvatars_ = settings.value("user/small_avatars_enabled", false).toBool();
|
smallAvatars_ = settings.value("user/small_avatars_enabled", false).toBool();
|
||||||
animateImagesOnHover_ = settings.value("user/animate_images_on_hover", false).toBool();
|
animateImagesOnHover_ = settings.value("user/animate_images_on_hover", false).toBool();
|
||||||
typingNotifications_ = settings.value("user/typing_notifications", true).toBool();
|
typingNotifications_ = settings.value("user/typing_notifications", true).toBool();
|
||||||
sortByImportance_ = settings.value("user/sort_by_unread", true).toBool();
|
sortByImportance_ = settings.value("user/sort_by_unread", true).toBool();
|
||||||
sortByAlphabet_ = settings.value("user/sort_by_alphabet", false).toBool();
|
sortByAlphabet_ = settings.value("user/sort_by_alphabet", false).toBool();
|
||||||
readReceipts_ = settings.value("user/read_receipts", true).toBool();
|
readReceipts_ = settings.value("user/read_receipts", true).toBool();
|
||||||
theme_ = settings.value("user/theme", defaultTheme_).toString();
|
theme_ = settings.value("user/theme", defaultTheme_).toString();
|
||||||
displayParentInSwitcher_ = settings.value("user/display_parent_on_room_switch", true).toBool();
|
displayParentInSwitcher_ = settings.value("user/display_parent_on_room_switch", true).toBool();
|
||||||
|
|
||||||
font_ = settings.value("user/font_family", "").toString();
|
font_ = settings.value("user/font_family", "").toString();
|
||||||
|
|
|
@ -636,7 +636,8 @@ TimelineViewManager::fixImageRendering([[maybe_unused]] QQuickTextDocument *t,
|
||||||
#else
|
#else
|
||||||
void
|
void
|
||||||
TimelineViewManager::fixImageRendering(QQuickTextDocument *, QQuickItem *)
|
TimelineViewManager::fixImageRendering(QQuickTextDocument *, QQuickItem *)
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;
|
using IgnoredUsers = mtx::events::EphemeralEvent<mtx::events::account_data::IgnoredUsers>;
|
||||||
|
|
Loading…
Reference in a new issue