feat: backfill direct messages without double-puppeting

This commit is contained in:
Timo Ley 2024-02-29 21:13:40 +01:00
parent 805d84776a
commit 074745a3b5

View file

@ -1097,10 +1097,6 @@ func (portal *Portal) getMessageIntent(user *User, info *types.MessageInfo, msgT
return nil
}
intent := puppet.IntentFor(portal)
if !intent.IsCustomPuppet && portal.IsPrivateChat() && info.Sender.User == portal.Key.Receiver.User && portal.Key.Receiver != portal.Key.JID {
portal.log.Debugfln("Not handling %s (%s): user doesn't have double puppeting enabled", info.ID, msgType)
return nil
}
return intent
}