mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
[Improvement] Do not show account name in notification for active account
This commit is contained in:
committed by
Eric Kotato
parent
60eb6f0632
commit
cf9ca908f3
@@ -1008,6 +1008,12 @@ TextWithEntities Manager::addTargetAccountName(
|
|||||||
TextWithEntities title,
|
TextWithEntities title,
|
||||||
not_null<Main::Session*> session) {
|
not_null<Main::Session*> session) {
|
||||||
const auto add = [&] {
|
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()) {
|
for (const auto &[index, account] : Core::App().domain().accounts()) {
|
||||||
if (const auto other = account->maybeSession()) {
|
if (const auto other = account->maybeSession()) {
|
||||||
if (other != session) {
|
if (other != session) {
|
||||||
|
Reference in New Issue
Block a user