feat(platform): activeChannelId on dm.send and dm.group.create (Phase 547)

Extend dm.send and dm.group.create span ends with activeChannelId metadata.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 13:29:39 -04:00
co-authored by Cursor
parent 3c86b53bbc
commit ba4007b743
2 changed files with 6 additions and 2 deletions
+2
View File
@@ -45,6 +45,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.452 (Phase 489):** `slash.register` `customCount`; `slash.delete` `deleted`; `slash.invoke` `replyLen`/`commandFound`. UI slash compositor + hints. Bundle: `npm run test:phase489-slash`. See [SLASH_COMMANDS.md](../../docs/SLASH_COMMANDS.md). **v0.8.452 (Phase 489):** `slash.register` `customCount`; `slash.delete` `deleted`; `slash.invoke` `replyLen`/`commandFound`. UI slash compositor + hints. Bundle: `npm run test:phase489-slash`. See [SLASH_COMMANDS.md](../../docs/SLASH_COMMANDS.md).
**v0.8.510 (Phase 547):** DM spans extend — `activeChannelId` on `dm.send` and `dm.group.create` ends; split DMs panel compositor; clipboard `dmNewDmModalBusy`. Bundle: `npm run test:phase547-dms`. See [DM.md](../../docs/DM.md).
**v0.8.509 (Phase 546):** Contacts spans extend — `contacts.block`/`contacts.unblock` spans; `activeChannelId` on request/accept/decline/block/unblock ends; split contacts panel compositor; **contacts-errors** includes block/unblock. Bundle: `npm run test:phase546-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md). **v0.8.509 (Phase 546):** Contacts spans extend — `contacts.block`/`contacts.unblock` spans; `activeChannelId` on request/accept/decline/block/unblock ends; split contacts panel compositor; **contacts-errors** includes block/unblock. Bundle: `npm run test:phase546-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
**v0.8.508 (Phase 545):** Discovery spans extend — `discovery.prune` span; `activeChannelId` on `discovery.list`/`publish`/`mesh`/`prune` ends; split discovery panel compositor; **discovery-errors** includes `prune`. Bundle: `npm run test:phase545-discovery`. See [DISCOVERY.md](../../docs/DISCOVERY.md). **v0.8.508 (Phase 545):** Discovery spans extend — `discovery.prune` span; `activeChannelId` on `discovery.list`/`publish`/`mesh`/`prune` ends; split discovery panel compositor; **discovery-errors** includes `prune`. Bundle: `npm run test:phase545-discovery`. See [DISCOVERY.md](../../docs/DISCOVERY.md).
+4 -2
View File
@@ -993,7 +993,8 @@ class PearcordPlatform extends EventEmitter {
participantCount: (channel.participantIds || []).length, participantCount: (channel.participantIds || []).length,
peerUserIdsLen: ids.length, peerUserIdsLen: ids.length,
nameLen: String(name || '').trim().length, nameLen: String(name || '').trim().length,
dmConversationCount: dmConversations.length dmConversationCount: dmConversations.length,
activeChannelId: channel.id
}) })
return channel return channel
} catch (err) { } catch (err) {
@@ -11862,7 +11863,8 @@ class PearcordPlatform extends EventEmitter {
stickerCount: (opts.stickerNames || []).length, stickerCount: (opts.stickerNames || []).length,
hasSticker: (opts.stickerNames || []).length > 0, hasSticker: (opts.stickerNames || []).length > 0,
groupDm: isDm ? !!this.dm?.channel?.isGroup : false, groupDm: isDm ? !!this.dm?.channel?.isGroup : false,
sealed: isDm ? !!msg?.sealed : false sealed: isDm ? !!msg?.sealed : false,
activeChannelId: this.activeChannelId
}) })
return msg return msg
} catch (err) { } catch (err) {