• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Follow-up for https://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-10%3Agustafn%3A20230313120323

- make sure the anonymous users nsv is created when the chat is instantiated

- make sure xo::cc is available when the anonymous identifier is generated

- handle in the Chat package, that the uid may not be a user, but an IP address

- adapt other chat skins to the new anonymous user logics

  1. … 3 more files in changeset.
Added support for anonymous users in chat class

Previous version of the chat class required a login for participating

in the chat. The new version also supports a mixed mode, with

authenticated and non-authenticated users can participate. For

unauthenticated users, the disambiguation is performed over the peer

IP address, similar to the xotcl-request-monitor. Instead of the raw

IP address, an artificial username is displayed for such users (like

e.g. userXXX).

For unauthenticated users, some differences apply:

- one cannot provide a link to the private page

- unauthenticated users cannot access the user-portrait

of authenticated users.

The GUI changes are only made on chat-skins/chat-classic.js, not on

the other skins.

  1. … 1 more file in changeset.
Do not add additional style around the chat includelet, regardless if this is a "chat_room" or a "chat"

  1. … 1 more file in changeset.
Fixes and adjustments for the chat-minimal chat skin:

- show the fullscreen button, very useful on devices with little screen real estate

- display on the same line, in respective order, avatar (when enabled), user name and link, timestamp and message

- wrap the message over multiple lines when it would not fit

Improve responsiveness at smaller resolutions for the fullscreen button

Add new chat skin 'minimal'.

Specially designed to be embedded in other pages, it provides a clean look without user list, full screen button, or anything else aside from the avatar, timestamp, user name and message.

  1. … 1 more file in changeset.
Centralize logic to retrieve out own user_id, then use it also when rendering the users list

  1. … 1 more file in changeset.
Chat Redesign: clicking in your own name points to '/pvt/home' instead of '/shared/community-member'

Chat Redesign: enable/disable avatar pictures by room, using the new attribute 'avatar_p', instead of by package instance, using the 'ShowAvatar' parameter.

  1. … 18 more files in changeset.
Chat Redesign: move common functions used in the chat skins to 'chat-common.js', and rename the skin javascript files.

  1. … 2 more files in changeset.
Improve the situation on browsers such as Firefox, where correct xml is somehow enforced when one does not specify the responseType

One should also find a solution for the persistent subscription, as it is trickier

  1. … 2 more files in changeset.