Skip to content

Function: applyLiveUpdate() ​

ts
function applyLiveUpdate(
   previous, 
   channelId, 
   live, 
   leftUserId?
): LiveChannels;

Defined in: voicePresence.ts:18

Apply one channel's live update.

live is the channel's record after the change. It can be missing when the server lost the record, e.g. it expired under a long call; then only the person who left (leftUserId) is taken out, rather than everyone still in the call vanishing from the list.

Parameters ​

ParameterType
previousLiveChannels
channelIdnumber
live| Partial<IChannelLive> | null | undefined
leftUserId?number

Returns ​

LiveChannels

Released under the GNU Affero General Public License v3.0.