Fix typo
This commit is contained in:
@@ -99,7 +99,7 @@ void ActionsHandler::postEdit(const QString &text)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ActionsHandler::postMessage(const QString &text,
|
void ActionsHandler::postMessage(const QString &text,
|
||||||
const QString &attachementPath,
|
const QString &attachmentPath,
|
||||||
const QString &replyEventId,
|
const QString &replyEventId,
|
||||||
const QString &editEventId,
|
const QString &editEventId,
|
||||||
const QVariantMap &usernames,
|
const QVariantMap &usernames,
|
||||||
@@ -119,8 +119,8 @@ void ActionsHandler::postMessage(const QString &text,
|
|||||||
cleanedText = cleanedText.replace(it.key(), "[" + it.key() + "](https://matrix.to/#/" + it.value().toString() + ")");
|
cleanedText = cleanedText.replace(it.key(), "[" + it.key() + "](https://matrix.to/#/" + it.value().toString() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attachementPath.length() > 0) {
|
if (attachmentPath.length() > 0) {
|
||||||
m_room->uploadFile(attachementPath, cleanedText);
|
m_room->uploadFile(attachmentPath, cleanedText);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cleanedText.length() == 0) {
|
if (cleanedText.length() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user