Compare commits
4 Commits
work/nvrwh
...
work/redst
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9c6db8e04 | ||
|
|
7550b2b000 | ||
|
|
daa66c4abc | ||
|
|
e0b229e040 |
@@ -188,7 +188,7 @@ void ChatMarkdownHelper::checkMarkdown(int position, int charsRemoved, int chars
|
||||
// This can happen when formatting is applied.
|
||||
if (charsAdded == charsRemoved) {
|
||||
return;
|
||||
} else if (m_textItem->isCompleting || charsRemoved > charsAdded || charsAdded - charsRemoved > 1) {
|
||||
} else if ((m_textItem->textFormat() && m_textItem->textFormat() == Qt::TextFormat::PlainText) || m_textItem->isCompleting || charsRemoved > charsAdded || charsAdded - charsRemoved > 1) {
|
||||
updatePosition(std::max(0, position - charsRemoved + charsAdded));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,7 @@ void ChatBarMessageContentModel::connectCache(ChatBarCache *oldCache)
|
||||
}
|
||||
const auto currentCache = m_room->cacheForType(m_type);
|
||||
updateReplyModel();
|
||||
refocusCurrentComponent();
|
||||
if (currentCache->isEditing()) {
|
||||
initializeFromCache();
|
||||
}
|
||||
|
||||
@@ -30,6 +30,9 @@ SearchPage {
|
||||
*/
|
||||
property string senderId
|
||||
|
||||
// This requires client-side search we don't implement yet
|
||||
readonly property bool canSearch: !room.usesEncryption
|
||||
|
||||
title: i18nc("@action:title", "Search Messages")
|
||||
|
||||
model: SearchModel {
|
||||
@@ -45,6 +48,9 @@ SearchPage {
|
||||
searchFieldPlaceholder: i18n("Find messages…")
|
||||
noSearchPlaceholderMessage: i18n("Enter text to start searching")
|
||||
noResultPlaceholderMessage: i18n("No messages found")
|
||||
customPlaceholderIcon: "lock-symbolic"
|
||||
customPlaceholderText: !canSearch ? i18n("Cannot search in encrypted rooms") : ""
|
||||
enableSearch: canSearch
|
||||
|
||||
listVerticalLayoutDirection: ListView.BottomToTop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user