Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Fill "network" section in m.bridge state key #106

Open
MurzNN opened this issue Jan 14, 2021 · 0 comments
Open

Fill "network" section in m.bridge state key #106

MurzNN opened this issue Jan 14, 2021 · 0 comments

Comments

@MurzNN
Copy link
Contributor

MurzNN commented Jan 14, 2021

Seems "network" section of MSC2346 isn't filled by mx-puppet-slack bridge.

Here is example of state key:

{
  "type": "uk.half-shot.bridge",
  "sender": "@_slackpuppet_bot:ru-matrix.org",
  "content": {
    "bridgebot": "@_slackpuppet_bot:ru-matrix.org",
    "creator": "@murz:ru-matrix.org",
    "protocol": {
      "id": "slack",
      "displayname": "Slack",
      "external_url": "https://slack.com"
    },
    "channel": {
      "id": "_t06_g_x3_j_t_s=2d_c6_s_q_m2_j94",
      "displayname": "views - Drupal",
      "avatar_url": "mxc://ru-matrix.org/YVtqrjOMufllpWmupyUsuYuy"
    }
  },
  "state_key": "de.sorunome.mx-puppet-bridge://slack/_t06_g_x3_j_t_s%3D2d_c6_s_q_m2_j94",
  "origin_server_ts": 1605367810798,
  "unsigned": {
    "age": 4989531134
  },
  "event_id": "[censored]",
  "room_id": "[censored]:ru-matrix.org"
}

Via this info we can't understand with which Slack workspace this room is bridge.

Will be good to fill "network" section with suitable data from Slack workspace:

        "network": {
            "id": "slack workspace id",
            "displayname": "slack workspace display name",
            "avatar_url": "slack workspace avatar",
            "external_url": "slack workspace frontpage"
        },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant