mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
🐛 Post merge problems.
This commit is contained in:
parent
3b1d3b75ea
commit
931df9237f
|
|
@ -965,9 +965,10 @@ func completeRegistration(
|
|||
// TODO-entry refuse register if threepid is already bound to account.
|
||||
if threePid != nil {
|
||||
err = userAPI.PerformSaveThreePIDAssociation(ctx, &userapi.PerformSaveThreePIDAssociationRequest{
|
||||
Medium: threePid.Medium,
|
||||
ThreePID: threePid.Address,
|
||||
Localpart: accRes.Account.Localpart,
|
||||
Medium: threePid.Medium,
|
||||
ThreePID: threePid.Address,
|
||||
Localpart: accRes.Account.Localpart,
|
||||
ServerName: accRes.Account.ServerName,
|
||||
}, &struct{}{})
|
||||
if err != nil {
|
||||
return util.JSONResponse{
|
||||
|
|
|
|||
|
|
@ -80,8 +80,6 @@ func newSyncRequest(req *http.Request, device userapi.Device, syncDB storage.Dat
|
|||
filter.AccountData.Limit = math.MaxInt32
|
||||
filter.Room.AccountData.Limit = math.MaxInt32
|
||||
}
|
||||
// Ignore state limit filter so that e.g. correct room name appears on clients.
|
||||
filter.Room.State.Limit = math.MaxInt32
|
||||
|
||||
logger := util.GetLogger(req.Context()).WithFields(logrus.Fields{
|
||||
"user_id": device.UserID,
|
||||
|
|
|
|||
|
|
@ -625,7 +625,7 @@ func (a *UserInternalAPI) PerformAccountDeactivation(ctx context.Context, req *a
|
|||
return err
|
||||
}
|
||||
|
||||
threepids, err := a.DB.GetThreePIDsForLocalpart(ctx, req.Localpart)
|
||||
threepids, err := a.DB.GetThreePIDsForLocalpart(ctx, req.Localpart, serverName)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue