fix(user): push guild member updates on profile field changes (#2850)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-19 23:30:25 +02:00
1 parent ac3450ab32
commit bf7567b768
8 files changed
+223 -42

No files matched your search

@@ -87,6 +87,7 @@ export class UserAccountService {
gatewayService,
mediaService,
userRepository: userAccountRepository,
guildRepository,
});
this.lookupService = new UserAccountLookupService({
userAccountRepository,
@@ -193,7 +194,7 @@ export class UserAccountService {
() => this.updatePropagator.dispatchUserUpdate(updatedUser),
async () => {
if (hasPartialUserFieldsChanged(user, updatedUser)) {
await this.updatePropagator.updateUserCache(updatedUser);
await this.updatePropagator.propagatePartialUserChange(updatedUser);
}
},
async () => {
@@ -240,7 +241,7 @@ export class UserAccountService {
const updatedUser = await this.userAccountRepository.patchUpsert(user.id, updates, user.toRow());
await this.updatePropagator.dispatchUserUpdate(updatedUser);
if (hasPartialUserFieldsChanged(user, updatedUser)) {
await this.updatePropagator.updateUserCache(updatedUser);
await this.updatePropagator.propagatePartialUserChange(updatedUser);
}
}
}