Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/0228834de00f2519b8eedf7b6d08c388 to your computer and use it in GitHub Desktop.
Save iaindooley/0228834de00f2519b8eedf7b6d08c388 to your computer and use it in GitHub Desktop.
Don't let people archive
function dontLetPeopleArchive(notification)
{
var notif = new Notification(notification);
var arched = notif.archivedCard();
if(
(notif.member().name() != "myusername") &&
(archived.currentList().name() != "Need to Archive")
)
{
arched.unArchive().moveTo("Archived","top");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment