• Resolved David Innes

    (@david-innes)


    I’ve set Auto-delete old messages to 1 day but when I check, older messages are still in the chat nearly a week later.  Is there a way to fix on my end or is this a bug? (I can’t provide a link because the client only enables chat during one weekly streaming event.)

    I should add that the client is extremely happy with your solution. As they told me, this is a minor quibble, not showstopper bug. They just want to avoid confusion when a fresh weekly session begins.

    Thanks!

    100% optional: Speaking of which is there a way to manually clear an entire chat? While this isn’t important for my client, there are other use cases where there might be multiple events a day where it wouldn’t make sense for messages from one session to remain visible in a later session.

    Thanks again.

    • This topic was modified 1 week, 3 days ago by David Innes.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Asad Khalil

    (@jauntymellifluous)

    Hi David,

    Thanks for reporting. I am checking into this. Clearing the chat button sounds like a neat idea. I’ll add it in the next update when I roll out the fix.

    Plugin Author Asad Khalil

    (@jauntymellifluous)

    Hi David,

    You had diagnosed it perfectly: the problem was WordPress cron. WP-cron only fires when the site gets a visitor, so on a site where the chat is only enabled during a weekly event, the daily cleanup often never ran — which is exactly why your client’s messages lingered for a week.

    v1.2.1 adds a fallback that also prunes old messages when the chat itself loads (throttled to once an hour so it’s not constantly hitting the database). So retention now works even on a quiet, traffic-light site. I tested it against backdated messages to confirm: anything past the cutoff clears, while recent and pinned messages stay put.

    And for the manual-clear question — there’s now a 🧹 Clear chat button in the chat header, visible to moderators only. One click arms it, a second click clears every message (pinned ones are kept). That should cover the multi-sessions-in-a-day case you mentioned, where you want a clean slate between sessions without waiting on any timer.

    A few other things landed in this release that you or your client might find useful:

    • Emoji picker — there’s now a 😊 button next to the message box that opens a panel of emoji to drop into a message. Might be a nice touch for your community.
    • Cloudflare Turnstile (optional) — if spam ever becomes an issue, you can enable a free, privacy-friendly bot check under Settings → LobbyChat → Spam protection. You can require it for guests only so logged-in members aren’t bothered. Off by default.
    • Smoother moderator controls — the hover actions on each message (Delete / Pin / Report) now float in the corner instead of nudging the message taller, so the chat doesn’t visually jump around when you mouse over it.

    Update via Dashboard → Updates. Thanks again for taking the time to write up such clear reports — genuinely helpful, and I’m glad the plugin’s working well for your client.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.