vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
19 stars 6 forks source link

[FEATURE] Rest period advertisements #69

Open TekkadanPlays opened 2 months ago

TekkadanPlays commented 2 months ago

One issue with the persistent advertisements in chat is similar to how 'user has entered the chat' created a nearly permanent notification bubble to appear on the chat button.

With respect to the in-chat advertisements, I think it would be better if Cornychat could identify whether or not a user has chatted in the last 15 minutes as well. This would prevent the buildup of unseen advertisements while still allowing a timer-based aggregation of them in rooms where chat is used.

So by typing in chat, it would trigger the beginning of the advertisement timer, and after 15 minutes of "the chat having been initially used," an advertisement would push through. If notifications for advertisements are disabled entirely, then advertisements would only push every 15 minutes between users interacting with the chat. This would allow for chat history to persist, alongside the ads, which would post in the chat's downtime, but still be seen any time the chat is accessed.