cryptag / backchannel

Secure collaboration for activists, journalists, and you
https://www.cryptag.org/
Other
4 stars 2 forks source link

Notifications: They never go away :-) #22

Open elimisteve opened 7 years ago

elimisteve commented 7 years ago

screenshot-cryptag-backchannel-notifications-wallofthem-screenshot - 12082016 - 08 54 54 pm

jimmcgaw commented 7 years ago

Whoa. It's not quite this nuts on OS X. That's pretty amazing.

I was thinking about this, since I keep reloading the app. My intent is to look into localStorage and how it can be used with electron apps. We could conceivably store the id of the last message for which you were notified. The notifier could then crawl back on initial load until it hits the last message id in the message chain, and only notify you for messages that are new.

e.g. @name Messages:

  1. Hello
  2. There
  3. You
  4. Mofo.

"4" is stored. You close the app, and return. Then there's:

  1. Suck
  2. This

You get notified about 5 and 6. "6" is stored, replacing "4". Etc.

jimmcgaw commented 7 years ago

And this would be room-specific somehow.

elimisteve commented 7 years ago

localStorage, cool. I wonder what persists, and for how long, between sessions of an Electron app being run?

Anyway, I say -- no need to worry about this right now unless you want to play with the tech needed to solve this.