[Improvement] Do not show account name in notification for active account
This commit is contained in:
parent
a26c5cc2ed
commit
a9c6adccd6
1 changed files with 6 additions and 0 deletions
|
|
@ -1008,6 +1008,12 @@ TextWithEntities Manager::addTargetAccountName(
|
|||
TextWithEntities title,
|
||||
not_null<Main::Session*> session) {
|
||||
const auto add = [&] {
|
||||
if (const auto activeSession = Core::App().domain().active().maybeSession()) {
|
||||
if (session == activeSession) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto &[index, account] : Core::App().domain().accounts()) {
|
||||
if (const auto other = account->maybeSession()) {
|
||||
if (other != session) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue