Skip to content

Configurable username format for webhook relays #155

Open
@austinhuang0131

Description

Originally posted at https://geekdom.social/@bigolifacks/112859769835968061 (not me); the concerning code is

discord/portal.go

Lines 1436 to 1441 in 035f2a4

func (portal *Portal) getRelayUserMeta(sender *User) (name, avatarURL string) {
member := portal.bridge.StateStore.GetMember(portal.MXID, sender.MXID)
name = member.Displayname
if name == "" {
name = sender.MXID.String()
}

so eg. allows the bridge to always include MXID in the webhook display name.

Activity

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

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