mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix notification receiver name.
This commit is contained in:
@@ -577,7 +577,17 @@ Manager::DisplayOptions Manager::GetNotificationOptions(HistoryItem *item) {
|
||||
QString Manager::addTargetAccountName(
|
||||
const QString &title,
|
||||
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
|
||||
+ accountNameSeparator()
|
||||
+ (session->user()->username.isEmpty()
|
||||
|
Reference in New Issue
Block a user