# Screen goes dim when cancelling message

**URL:** https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731
**Category:** Bug
**Created:** [April 29, 2020, 8:11am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731 "2020-04-29T08:11:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [April 29, 2020, 8:11am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/1 "2020-04-29T08:11:32Z")

</div>

Steps to repro:

Tap on the hamburger:

- Go to `Users`
- Click one profile
- Try to open the message icon
- Do not send the message, just press cancel
- The screen will goes dim and you should either refresh or reopen the community to navigate again.

Using my iPhone 7 plus.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 29, 2020, 8:31am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/2 "2020-04-29T08:31:59Z")

</div>

Is this happening on meta?

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [April 29, 2020, 8:37am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/3 "2020-04-29T08:37:13Z")

</div>

Yes. It also happens in other forums. I can record it if that helps.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [April 29, 2020, 8:48am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/4 "2020-04-29T08:48:08Z")

</div>

Please. I can’t repro off that for some reason. Unless it is a Apple only issue as I am on android.

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [April 29, 2020, 8:54am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/5 "2020-04-29T08:54:32Z")

</div>

In the video, once the screen goes dim, I try to press my profile, or the discourse logo, but nothing happens.

* * *

[![](https://global.discourse-cdn.com/meta/original/3X/2/c/2cd9d50577bfb6026cc72d26f9bf36998a04fa6c.jpeg "Discourse bug - Screen goes dim when canceling a message") ](https://www.youtube.com/watch?v=mHT--FBaqoU)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [April 29, 2020, 10:01am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/6 "2020-04-29T10:01:17Z")

</div>

Im digging this currently, I think this is related to `.card-cloak` not being hidden in this case for some unknown reason, ATM.

My best guess is that something recently made [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/mixins/card-contents-base.js#L79](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/mixins/card-contents-base.js#L79) not working.

If I call `this._hide()` manually from close in user card component, it will correctly work.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [April 29, 2020, 11:31am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/7 "2020-04-29T11:31:05Z")

</div>

Ok this should get fixed by:

[https://github.com/discourse/discourse/commit/4eed86919eae50216e6faafa18ae0bb626ffe92a](https://github.com/discourse/discourse/commit/4eed86919eae50216e6faafa18ae0bb626ffe92a)

Thanks for report 👍

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [April 29, 2020, 11:31am UTC](https://meta.discourse.org/t/screen-goes-dim-when-cancelling-message/149731/8 "2020-04-29T11:31:08Z")

</div>


