@zksecurity/slack-events 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -430,7 +430,7 @@ export function createNameResolver(fetchPage, fetchOne) {
|
|
|
430
430
|
const context = { users: {}, channels: {}, files: [] };
|
|
431
431
|
if (channel && typeof channelId === "string")
|
|
432
432
|
context.channels[channelId] = channel.name;
|
|
433
|
-
const ids = new Set([event.user, message.user, event.item_user, channel?.user,
|
|
433
|
+
const ids = new Set([event.user, event.user_id, message.user, event.item_user, channel?.user,
|
|
434
434
|
...Array.from(String(message.text ?? "").matchAll(/<@([A-Z0-9]+)(?:\|[^>]*)?>/g), match => match[1])]);
|
|
435
435
|
for (const id of ids) {
|
|
436
436
|
if (typeof id !== "string")
|