2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Allow editing last sent saved message by up key.

Also update libtgvoip.
Also replace 🤷 with a shrug.
This commit is contained in:
John Preston
2018-05-15 21:11:29 +03:00
parent 5f063c0151
commit 4bcd1e3c59
4 changed files with 13 additions and 2 deletions

View File

@@ -315,6 +315,13 @@ Replaces PrepareReplaces(const QString &filename) {
auto name = getString("name");
auto replacement = getString("alpha_code");
auto aliases = getString("aliases").split('|');
const auto Exceptions = { ":shrug:" };
for (const auto &exception : Exceptions) {
const auto index = aliases.indexOf(exception);
if (index >= 0) {
aliases.removeAt(index);
}
}
if (aliases.size() == 1 && aliases[0].isEmpty()) {
aliases.clear();
}