mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
feat: send groupId with attachment progress events
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user