Skip to content

Commit

Permalink
[Azoth Xoox] Warn about juick only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Oct 14, 2014
1 parent 009e0a0 commit c4eab4c
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/plugins/azoth/plugins/xoox/clientconnection.cpp
Expand Up @@ -996,18 +996,26 @@ namespace Xoox

if (bareJid == "juick@juick.com")
{
new Util::DelayedExecutor
const auto hasDisplayed = XmlSettingsManager::Instance ()
.Property ("HasDisplayedJuickDeprecation", false).toBool ();
if (!hasDisplayed)
{
[] () -> void
new Util::DelayedExecutor
{
const auto& e = Util::MakeNotification ("Azoth",
tr ("Using the juick.com service is discouraged. Please consider "
"migrating to saner alternatives, like point.im."),
PWarning_);
Core::Instance ().SendEntity (e);
},
15000
};
[]
{
const auto& e = Util::MakeNotification ("Azoth",
tr ("Using the juick.com service is discouraged. Please consider "
"migrating to saner alternatives, like point.im."),
PWarning_);
Core::Instance ().SendEntity (e);
},
15000
};

XmlSettingsManager::Instance ()
.setProperty ("HasDisplayedJuickDeprecation", true);
}
}
}
emit gotRosterItems (items);
Expand Down

0 comments on commit c4eab4c

Please sign in to comment.