mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Removed unused parameter
This commit is contained in:
parent
d195b2df6f
commit
29ccf85dcb
|
|
@ -121,7 +121,7 @@ func SetAvatarURL(
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := sendUpdate(userID, oldProfile, r.AvatarURL, "", accountDB, cfg); err != nil {
|
if err := sendUpdate(userID, oldProfile, r.AvatarURL, "", cfg); err != nil {
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -176,7 +176,7 @@ func SetDisplayName(
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := sendUpdate(userID, oldProfile, "", r.DisplayName, accountDB, cfg); err != nil {
|
if err := sendUpdate(userID, oldProfile, "", r.DisplayName, cfg); err != nil {
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -200,7 +200,7 @@ func getLocalPart(userID string) string {
|
||||||
// Send an update using kafka to notify the roomserver of the profile update
|
// Send an update using kafka to notify the roomserver of the profile update
|
||||||
// Returns an error if the update failed to send
|
// Returns an error if the update failed to send
|
||||||
func sendUpdate(userID string, oldProfile *authtypes.Profile, newAvatarURL string,
|
func sendUpdate(userID string, oldProfile *authtypes.Profile, newAvatarURL string,
|
||||||
newDisplayName string, accountDB *accounts.Database, cfg config.Dendrite,
|
newDisplayName string, cfg config.Dendrite,
|
||||||
) error {
|
) error {
|
||||||
var update profileUpdate
|
var update profileUpdate
|
||||||
var m sarama.ProducerMessage
|
var m sarama.ProducerMessage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue