feat: send groupId with attachment progress events

This commit is contained in:
thecodrr
2021-10-21 10:16:24 +05:00
parent 6671285679
commit 5224658297
3 changed files with 6 additions and 6 deletions

View File

@@ -10,9 +10,10 @@ export async function sendCheckUserStatusEvent(type) {
return results.some((r) => r.type === type && r.result === true);
}
export function sendAttachmentsProgressEvent(type, total, current) {
export function sendAttachmentsProgressEvent(type, groupId, total, current) {
EV.publish(EVENTS.attachmentsLoading, {
type,
groupId,
total,
current: current === undefined ? total : current,
});