try groupmeid

This commit is contained in:
Annie Elequin 2021-09-16 18:28:56 -04:00
parent 436c3a620e
commit ece37472c1

View File

@ -55,9 +55,9 @@ func NewFormatter(bridge *Bridge) *Formatter {
if mxid[0] == '@' {
puppet := bridge.GetPuppetByMXID(id.UserID(mxid))
if puppet != nil {
jids, ok := ctx[mentionedJIDsContextKey].([]groupme.JID)
jids, ok := ctx[mentionedJIDsContextKey].([]types.GroupMeID)
if !ok {
ctx[mentionedJIDsContextKey] = []groupme.JID{puppet.JID}
ctx[mentionedJIDsContextKey] = []types.GroupMeID{puppet.JID}
} else {
ctx[mentionedJIDsContextKey] = append(jids, puppet.JID)
}