Skip to content

Update remote platform message data to have similar structure with local messages #98

Description

@S-S-X

Remote message data can be and is bit different but should be restructured before handing it out to event handlers and/or chat API.

Probable either just before calling handle_data or after first sanity check and before first event handler callbacks here:

beerchat/web/rx.lua

Lines 3 to 10 in 0f106b1

local function handle_data(data)
if not data or not data.username or not data.text or not data.gateway or not data.protocol then
return
end
if not beerchat.execute_callbacks('on_http_receive', data) then
return
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions