try groupmeid
This commit is contained in:
parent
436c3a620e
commit
ece37472c1
@ -55,9 +55,9 @@ func NewFormatter(bridge *Bridge) *Formatter {
|
|||||||
if mxid[0] == '@' {
|
if mxid[0] == '@' {
|
||||||
puppet := bridge.GetPuppetByMXID(id.UserID(mxid))
|
puppet := bridge.GetPuppetByMXID(id.UserID(mxid))
|
||||||
if puppet != nil {
|
if puppet != nil {
|
||||||
jids, ok := ctx[mentionedJIDsContextKey].([]groupme.JID)
|
jids, ok := ctx[mentionedJIDsContextKey].([]types.GroupMeID)
|
||||||
if !ok {
|
if !ok {
|
||||||
ctx[mentionedJIDsContextKey] = []groupme.JID{puppet.JID}
|
ctx[mentionedJIDsContextKey] = []types.GroupMeID{puppet.JID}
|
||||||
} else {
|
} else {
|
||||||
ctx[mentionedJIDsContextKey] = append(jids, puppet.JID)
|
ctx[mentionedJIDsContextKey] = append(jids, puppet.JID)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user