[0.2.0.2] – 2025-11-05
- Added User List sidebar (
#wpj_people) to display all participants.
- Added sidebar toggle logic: click icon to open, click same icon to close, or click other icon to switch panes.
- Added "click outside" functionality to close the sidebar.
- Added sanitization for
user_account in the lobby AJAX call to prevent errors.
- Added sanitization for
channelName on the server-side (wpj_generate_token_callback) for better security.
- Major Change: Upgraded the entire Real-Time Messaging (RTM) API from v1.x to v2.2.2 (Signaling SDK) to support new token authentication.
- RTM constructor now correctly uses
new RTM(appId, userId) and .login({ token }) per v2.2.2 documentation.
- RTM event listeners updated from
.on() to the correct .addEventListener() method.
- RTM channel/presence subscription consolidated into a single
.subscribe(channel, { withPresence: true }) call.
- Asset Fix: Replaced all 404-ing
<img> icons (Sidebar Close, Chat Send, Default Avatar) with inline <svg> elements for faster loading and reliability.
- Loader Fix: Forced Agora SDK scripts (RTC & RTM) to load in the
<head> (in_footer = false) to prevent JavaScript race conditions in the footer.
- Passed
user_role from PHP directly to wpj-meetingroom.js via the settings object.
- RTM Fix: Fixed persistent bug where
whoNow function failed with "Invalid channel type" by explicitly specifying the 'MESSAGE' channel type.
- RTM Fix: Fixed crash (
TypeError: reading 'length' of undefined) when checking whoNow results on an empty or new channel by adding proper safety checks.
- Lobby UI Fix: Fixed control buttons (Mic/Cam) in Lobby disappearing during video preview (Corrected jQuery
.empty() to .remove()).
- Meeting UI Fix: Fixed footer toolbar icons (Mic/Cam/Leave) being squashed (4x22px bug) by adding
flex-shrink: 0 to the SVG CSS.
- Shortcode Fix: Removed hardcoded
width/height attributes from all SVGs in shortcode.php to allow CSS to take control.