Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix too many updates for meetingSettingsService.get() #3632

Merged
merged 3 commits into from
May 15, 2024

Conversation

Elblinator
Copy link
Member

closes #3631
reverts part of #3621

@Elblinator Elblinator added the bug label Apr 30, 2024
@Elblinator Elblinator added this to the 4.2 milestone Apr 30, 2024
@Elblinator Elblinator requested review from bastianjoel and MSoeb April 30, 2024 14:34
@Elblinator Elblinator requested review from MSoeb and removed request for bastianjoel and MSoeb April 30, 2024 14:35
@Elblinator Elblinator assigned Elblinator and unassigned bastianjoel and MSoeb Apr 30, 2024
@Elblinator Elblinator force-pushed the 3621-cleanup-subscriptions branch from 0602cbf to f77e85c Compare April 30, 2024 14:55
@Elblinator Elblinator assigned bastianjoel and MSoeb and unassigned Elblinator Apr 30, 2024
@Elblinator Elblinator requested review from bastianjoel and MSoeb April 30, 2024 14:56
@Elblinator Elblinator marked this pull request as ready for review April 30, 2024 14:56
@bastianjoel bastianjoel removed their assignment Apr 30, 2024
@@ -25,7 +25,9 @@ export class MeetingSettingsService {
this.activeMeetingService.meetingObservable.subscribe(meeting => {
if (meeting) {
for (const key of Object.keys(this.settingSubjects)) {
this.settingSubjects[key].next(meeting[key as keyof ViewMeeting]);
if (!(this.settingSubjects[key].getValue() === meeting[key as keyof ViewMeeting])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!(this.settingSubjects[key].getValue() === meeting[key as keyof ViewMeeting])) {
if (this.settingSubjects[key].getValue() !== meeting[key as keyof ViewMeeting]) {

@Elblinator Elblinator assigned bastianjoel and unassigned Elblinator May 3, 2024
@Elblinator Elblinator requested a review from bastianjoel May 3, 2024 09:09
@bastianjoel bastianjoel removed their assignment May 3, 2024
@Elblinator
Copy link
Member Author

waiting for @rrenkert

@Elblinator Elblinator requested review from rrenkert and removed request for MSoeb May 3, 2024 10:37
@rrenkert rrenkert merged commit 298e381 into OpenSlides:main May 15, 2024
4 checks passed
@Elblinator Elblinator deleted the 3621-cleanup-subscriptions branch August 2, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix too many updates for meetingSettingsService.get()
4 participants