mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fix notification receiver name.
This commit is contained in:
@@ -577,7 +577,17 @@ Manager::DisplayOptions Manager::GetNotificationOptions(HistoryItem *item) {
|
|||||||
QString Manager::addTargetAccountName(
|
QString Manager::addTargetAccountName(
|
||||||
const QString &title,
|
const QString &title,
|
||||||
not_null<Main::Session*> session) {
|
not_null<Main::Session*> session) {
|
||||||
return (Core::App().domain().accounts().size() > 1)
|
const auto add = [&] {
|
||||||
|
for (const auto &[index, account] : Core::App().domain().accounts()) {
|
||||||
|
if (const auto other = account->maybeSession()) {
|
||||||
|
if (other != session) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}();
|
||||||
|
return add
|
||||||
? (title
|
? (title
|
||||||
+ accountNameSeparator()
|
+ accountNameSeparator()
|
||||||
+ (session->user()->username.isEmpty()
|
+ (session->user()->username.isEmpty()
|
||||||
|
Reference in New Issue
Block a user