• last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add "Web notifications" for new messages in the chat. See: https://www.w3.org/TR/notifications/

"You should only request consent to display notifications in response to a user gesture

(e.g. clicking a button). This is not only best practice — you should not be spamming

users with notifications they didn't agree to — but going forward browsers will explicitly

disallow notification permission requests not triggered in response to a user gesture.

Firefox is already doing this from version 72, for example, and Safari has done it for some time."

https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

  1. … 1 more file in changeset.
Show number of active users in chat. Many thanks to Monika Andergassen

  1. … 1 more file in changeset.
Handle the case when one is trying to access a non-existing room

Keep returning 0 when no transcript is created, as the code expects

Uniform the quoting criteria when dealing with transcripts:

- transcripts are stored as they are, no quoting in the data we store (and therefore HTML should be avoided)

- transcripts are displayed quoted, therefore disabling any effect from HTML eventually present in the content

- bring the logics to build transcript content in the api to avoid duplication

- avoid sending the transcript content to transcript-new-2, as we can generate it server side

Note: storing transcripts as a pre-formatted chunk of text is probably not the best approach, as any changes to the formatting cannot be applied to pre-existing data without a delicate upgrade. This new approach will make <br> tags inside older transcripts visible...

Remove lefrover files

Fix typo

Try to handle the case of a user accessing a non-existing chat without throwing a log error

file toggle-active.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./www/toggle-active.tcl
Allow to toggle chat active state from the chat list

Update es_ES message keys

  1. … 7 more files in changeset.
added editor hints and white-space cleanup

  1. … 20 more files in changeset.
Add @see for deprecated procs

improve spelling: prefer comma after "therefore" and friends

  1. … 4 more files in changeset.
improve spelling

  1. … 9 more files in changeset.
improve comments

  1. … 2 more files in changeset.
add documentation to includelet

Document chat api using ad_* api facilities

Reduce divergencies between oracle and postgres

Reduce divergency between oracle and postgres

    • -12
    • +0
    ./www/moderator-grant-postgresql.xql
  1. … 3 more files in changeset.
improve spelling

    • -1
    • +1
    ./sql/postgresql/upgrade/upgrade-5.0d10-5.0d11.sql
    • -1
    • +1
    ./sql/postgresql/upgrade/upgrade-5.0d12-5.0d13.sql
  1. … 1 more file in changeset.
Fix oracle upgrade, remembering to keep privilege creation, which should indeed happen in the upgrade

    • -11
    • +1
    ./sql/oracle/upgrade/upgrade-5.0.1d5-5.0.1d6.sql
Skip column and attribute creation in this upgrade: people will get it from xotcl ORM in version 6.* and this upgrade would conflict

Make sure package_id is set on transcripts also when flushing messages every day

Chat reform:

- use consistently package_id to model belonging of a chat object to a particular package instead of the context_id

- set context_id to the package_id, as was already the case in practice, for permission checking

- make sure package_id exists and set it to the context_id in case it doesn't to handle legacy installations

Skip permission checks outside the connection context (in the sweeper)

Rework permission check

Check permissions: chat_read always and chat_write whenever we post

Fix typo

Align XoWiki UI naming to that currently in xowiki.pretty_name