1
0
forked from lug/matterbridge

Add Matrix username spoofing (#1875)

* Matrix username spoofing

* Add config sample
This commit is contained in:
Lucki
2022-09-06 00:46:52 +02:00
committed by GitHub
parent fda05f2262
commit 0c83946983
3 changed files with 41 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ func interface2Struct(in interface{}, out interface{}) error {
return json.Unmarshal(jsonObj, out)
}
// getDisplayName retrieves the displayName for mxid, querying the homserver if the mxid is not in the cache.
// getDisplayName retrieves the displayName for mxid, querying the homeserver if the mxid is not in the cache.
func (b *Bmatrix) getDisplayName(mxid string) string {
if b.GetBool("UseUserName") {
return mxid[1:]