# כשל באפיק ההודעות בעת שינוי הגדרת המשתמש "דלג על טיפים ותגים חדשים למשתמשים חדשים"

**URL:** <https://meta.discourse.org/t/message-bus-fail-when-changing-skip-new-user-onboarding-tips-and-badges-user-setting/264019>\
**Category:** Bug\
**Created:** [5 במאי,‏ 2023,‏ 9:34pm UTC](https://meta.discourse.org/t/message-bus-fail-when-changing-skip-new-user-onboarding-tips-and-badges-user-setting/264019 "2023-05-05T21:34:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [6 במאי,‏ 2023,‏ 12:51am UTC](https://meta.discourse.org/t/message-bus-fail-when-changing-skip-new-user-onboarding-tips-and-badges-user-setting/264019/2 "2023-05-06T00:51:18Z")

</div>

> <https://github.com/discourse/discourse/blob/83f1a13374bc3906919744f48071511c12912df9/app/assets/javascripts/discourse/app/initializers/user-tips.js#L41-L46>

It might be a good idea to check `this.site.user_tips` before. 😄

```js
  if (this.site.user_tips) {
    (seenUserTips || []).forEach((userTipId) => {
      this.currentUser.hideUserTipForever(
        Object.keys(this.site.user_tips).find(
          (id) => this.site.user_tips[id] === userTipId
        )
      );
    });
  }

```

I believe MessageBus is sent after saving is done; that’s why it works. It does not harm and should not be an actual issue.

---

_[View the full topic](https://meta.discourse.org/t/message-bus-fail-when-changing-skip-new-user-onboarding-tips-and-badges-user-setting/264019)._
