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 ​
| Parameter | Type |
|---|---|
previous | LiveChannels |
channelId | number |
live | | Partial<IChannelLive> | null | undefined |
leftUserId? | number |