Description
This event is generated when a Flock client opens an attachment widget. An attachment widget is either opened inline (on desktop) or in a modal webview (on mobile).
This event is only ever sent to the URL of the attachment widget – it is never sent to the event listener URL or to the browser.
{ "name": "client.openAttachmentWidget", "userId": "u:cfc76545-3400-4864-892a-513a9f4ae409", "userName": "Alyssa P. Hacker", "chat": "u:1e6429de-16b7-48b3-acc0-c2d7ec5ad195" "chatName": "Ben Bitdiddle", "messageId": "192ae268-dac3-428f-95a5-3a1ff7affcc9" "messageUid": "1373df0e-30d9-44f7-9fc5-dfc9c8d426fa", "attachmentId": "bb6c323f-f166-482c-8acf-37f1c4add30b" }
Event Attributes
Name | Type | Description |
---|---|---|
userId | String | User identifier |
userName | String | Name of the user |
chat | String | Id of the user or group whose chat tab is open |
chatName | String | Name of the user or group whose chat tab is open |
messageId | String | Client id for the message whose attachment widget is opened |
messageUid | String | Server id for the message whose attachment widget is opened |
attachmentId | String | id of the attachment whose widget is opened |