# Quick Messages Plugin

**URL:** https://meta.discourse.org/t/quick-messages-plugin/39188
**Category:** Plugin
**Tags:** broken
**Created:** [February 8, 2016, 12:13am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188 "2016-02-08T00:13:55Z")
**Posts on this page:** 20
**Page:** 16

<div class="post-metadata">

### Author: ![cmwebdev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmwebdev/32/122368_2.png) [@cmwebdev](https://meta.discourse.org/u/cmwebdev)
#### Post date: [June 22, 2018, 6:04pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/306 "2018-06-22T18:04:25Z")

</div>

**Feature Request:**  
Make the avatar in the chat and the username in the top bar of the chat link to the user’s profile popup/modal like when you click on a username/avatar anywhere else in Discourse.

Thanks!

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [August 1, 2018, 12:50am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/307 "2018-08-01T00:50:23Z")

</div>

@angus I really like these requests by @cmwebdev and @Blinq 😄

Anything happened so far on those requests? Thanks

---

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [August 2, 2018, 8:25am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/308 "2018-08-02T08:25:54Z")

</div>

> [@Blinq](#):
>
> - Being able to _horizontally_ scale the pop-up chat like you can vertically.
> - Being able to make the pop-up chat it’s own window, as done here:

On the top of Angus’ Quick Messages [To Do list](https://github.com/angusmcleod/discourse-quick-messages), he’s got:

> 1. Allow the user to have more than one quick message compose open at once.

Not sure if there is an outright conflict, but certainly seems like allowing each window to scroll horizontally and float anywhere on screen would make implementation of multiple quick message composers open at once more difficult.

> [@cmwebdev](#):
>
> Make the avatar in the chat and the username in the top bar of the chat link to the user’s profile popup/modal like when you click on a username/avatar anywhere else in Discourse.

That one sounds like it fits right in. Especially handy when you first get a PM from someone new 😀

---

<div class="post-metadata">

### Author: ![RoldanLT](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@RoldanLT](https://meta.discourse.org/u/RoldanLT)
#### Post date: [August 4, 2018, 4:17am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/309 "2018-08-04T04:17:34Z")

</div>

This should be core feature.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [August 5, 2018, 2:30am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/310 "2018-08-05T02:30:26Z")

</div>

Yup, @cmwebdev’s request is next up I think, as it’s expected functionality. (@ryanerwin maybe as one of your next mentoring tasks)

I like @ssvenn’s request as well. Perhaps after @cmwebdev’s.

@blinq’s requests are also doable. @ryanerwin The to do list in the readme is out of date, I’ve removed it.

cc @nexo

@phani00 Are you still having issues?

---

<div class="post-metadata">

### Author: ![phani00](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phani00/32/512402_2.png) [@phani00](https://meta.discourse.org/u/phani00)
#### Post date: [August 5, 2018, 3:12am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/311 "2018-08-05T03:12:12Z")

</div>

> [@angus](#):
>
> @phani00 Are you still having issues?

i’m sorry to say that i gave up using the plugin. that same issue, infrequent and unpredictable CPU spikes of several minutes when the plugin was being used by two users at the same time. those spikes made the site unresponsive and it seems i’m the only one that’s happening to.

---

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [August 7, 2018, 2:24am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/312 "2018-08-07T02:24:33Z")

</div>

@cmwebdev, @Blinq, @ssvenn @nexo … excellent!  
With Angus’ blessing and guidance, I’m looking forward to getting these implemented for you 😀

> [@phani00](#):
>
> infrequent and unpredictable CPU spikes of several minutes when the plugin was being used by two users at the same time

@phani00, If you want to work with me towards getting this re-enabled on your site, please send me screenshots (more clear, less ambiguity, less room for error in transmission) of:

- `version` section of the Dashboard at `/admin`
- everything shown in `admin/plugins`
- your browser’s `About` page that shows version/build/OS
- browser process manager when the CPU spike is in progress (only this one needs to actually be remembered at instant of the problem)
- ideally, a screenshot of exactly what was happening on screen at that moment with any confidential information blurred.

---

<div class="post-metadata">

### Author: ![phani00](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phani00/32/512402_2.png) [@phani00](https://meta.discourse.org/u/phani00)
#### Post date: [August 7, 2018, 3:53am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/313 "2018-08-07T03:53:26Z")

</div>

thank you, i’ll get back to you after trying it again. there have been two updates to discourse since then and i’ll have to check if this is still happening.

IIRC some ember\_jquery asset could not be found according to ~/logs and i suspect that’s still the case.

since i seem to be the only one this is happening to there’s no real sense of urgency. my site has only a couple hundred users and there’s rarely more than one online at the same time, so i can live without the plugin for now.

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [August 16, 2018, 8:21am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/314 "2018-08-16T08:21:09Z")

</div>

@angus I discovered a bug with this plugin on mobile. When opening a quick message chat, the composer and keyboard pops up fine, but when you minimize the chat and then open it again the keyboard pops up correctly _but_ the **composer does not appear**. Typing is still possible but the user cannot see what he is typing unless he hides the keyboard everytime which hinders UX. I encountered this on a Samsung Galaxy S8+ on Chrome (web app of my site).

 ![Screenshot_20180815-225835_Chrome](https://global.discourse-cdn.com/meta/original/3X/2/7/27a6a81f62cb57b95c41b819c48166f5b3b7f75a.jpeg)

---

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [August 16, 2018, 9:03am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/315 "2018-08-16T09:03:04Z")

</div>

@nexo Thanks for the bug report.

I was able to duplicate that on my S8+, and @tshenry was able to duplicate it on iOS, so I should be able to get it fixed.

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [August 17, 2018, 5:53pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/316 "2018-08-17T17:53:38Z")

</div>

Great to hear! Are you part of Angus’ team or something..? If so do you know when it’ll be fixed?

---

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [August 18, 2018, 1:07am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/317 "2018-08-18T01:07:22Z")

</div>

> [@nexo](#):
>
> Are you part of Angus’ team or something…?

I’ve been working with Angus on his plugin mentoring project:

> [@Learn how to build Discourse plugins by helping me](https://meta.discourse.org/t/learn-how-to-build-discourse-plugins-by-helping-me/87048):
>
> If anyone wants to learn more about building Discourse plugins or just about Ruby on Rails and Ember.js, here’s a standing offer. I can train you, providing detailed personal direction on how to code; how Discourse works; how to think about your users; and how to think about product design in exchange for you working on tasks on the current task list for any of [my plugins](https://meta.discourse.org/u/angus/activity/topics). Why pay $5k for a General Assembly course when you can get personal coaching for free, and get the chance to work on co…

> [@nexo](#):
>
> If so do you know when it’ll be fixed?

The problem seems to be that we don’t have a `window. onResize()` handler to call when the keyboard visibility is toggled. Discourse itself does have a `window.onResize` for the post composer window.

We have several other issues that are also on the list, but since this is a bug it will definitely be higher on the list. Other issues include:

> [@Quick Messages Plugin](https://meta.discourse.org/t/quick-messages-plugin/39188/308):
>
> On the top of Angus’ Quick Messages [To Do list](https://github.com/angusmcleod/discourse-quick-messages), he’s got: Allow the user to have more than one quick message compose open at once. Not sure if there is an outright conflict, but certainly seems like allowing each window to scroll horizontally and float anywhere on screen would make implementation of multiple quick message composers open at once more difficult. That one sounds like it fits right in. Especially handy when you first get a PM from someone new grinning

---

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [August 18, 2018, 6:55pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/318 "2018-08-18T18:55:07Z")

</div>

Congratulations on a great addon to Discourse.

I think there may be an issue with the latest version - or at least an incompatibility somewhere.

I upgraded QMP to version commit [fe6ca1e](https://github.com/angusmcleod/discourse-quick-messages/commit/fe6ca1efe9478d6e247071767b45a38e9d156cfe) this afternoon and users reported that their avatar was missing from the user menu (top right).

Here is a screenshot with the plugin enabled.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/7/c743bd69e3fc73ab6affea6bab2fbd35cebbaa76.png)

_(The light grey square is due to mouse hover when I took the screenshot)_

And here is one with the plugin disabled.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/8013933d192f4670fe0ebc6e09c5e18fbc16dcb9.png)

As you can see the avatar disappears when the QMP is enabled.

Examining the HTML of the #current-user element with the plugin disabled shows this.

```HTML
<li id="current-user" class="header-dropdown-toggle current-user">
  <a href="/u/saintbletch" data-auto-route="true" class="icon">
    <div>
      <img alt="" width="32" height="32" src="/user_avatar/www.sotonians.com/saintbletch/64/618_1.png" title="saintbletch" class="avatar">
    </div>
  </a>
</li>

```

And with the plugin enabled, you get this.

```HTML
<li id="current-user" class="header-dropdown-toggle current-user">
  <a href="/u/saintbletch" data-auto-route="true" class="icon">
    <div>
    </div>
  </a>
</li>

```

Any ideas?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [August 19, 2018, 1:05am UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/319 "2018-08-19T01:05:12Z")

</div>

@bletch Thanks, now fixed.

[https://github.com/angusmcleod/discourse-quick-messages/commit/e638c37e726d04067bc77bde86bf9c0ee3e6e69c](https://github.com/angusmcleod/discourse-quick-messages/commit/e638c37e726d04067bc77bde86bf9c0ee3e6e69c)

@ryanerwin Looks like we introduced a bug.

---

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [August 29, 2018, 9:01pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/320 "2018-08-29T21:01:11Z")

</div>

Hi @angus, on my live site I believe the QMP is kicking out multiple warnings to the logs as seen in `/logs`.

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/0/80d16485353d0853bf675286f820f9873d07b080.png)

> **Details of one of the warnings can be seen here.**
>
> ```plaintext
> Message
> 
> Uncaught TypeError: Cannot read property 'animate' of undefined Url: https://www.sotonians.com/assets/plugin-third-party-2a3b9024b0e6d5edc1f2e53c4b4d2d7231008bcb912ad43b24817e51fe3159bf.js Line: 13 Column: 11562 Window Location: https://www.sotonians.com/t/apologies/4530/5
> 
> Backtrace
> 
> TypeError: Cannot read property 'animate' of undefined at s.collapse (https://www.sotonians.com/assets/plugin-third-party-2a3b9024b0e6d5edc1f2e53c4b4d2d7231008bcb912ad43b24817e51fe3159bf.js:13:11562) at s.&lt;anonymous&gt; (https://www.sotonians.com/assets/plugin-third-party-2a3b9024b0e6d5edc1f2e53c4b4d2d7231008bcb912ad43b24817e51fe3159bf.js:13:13237) at Object.f [as sendEvent] (https://www.sotonians.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:11:31857) at s.trigger (https://www.sotonians.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:15:15189) at r (https://www.sotonians.com/assets/application-e1e407d65c5df653963480888063974aa7d72e55434fd69bc896b430f32b5b14.js:25:7113) at https://www.sotonians.com/assets/application-e1e407d65c5df653963480888063974aa7d72e55434fd69bc896b430f32b5b14.js:25:7176 at HTMLDivElement.&lt;anonymous&gt; (https://www.sotonians.com/assets/application-e1e407d65c5df653963480888063974aa7d72e55434fd69bc896b430f32b5b14.js:10:5730) at HTMLDivElement.dispatch (https://www.sotonians.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:2:18557) at HTMLDivElement.v.handle (https://www.sotonians.com/assets/ember_jquery-27e777857b8c0730dacfe09cb11711365d21a5db4f9ee0b85d494e4259cf6cda.js:2:16566)
> 
> Env
> 
> hostname sotonians-live-app
> process_id 16890
> application_version 6ec43f34725dcac7dc6589e7897436a2a8f19587
> HTTP_HOST www.sotonians.com
> REQUEST_URI /logs/report_js_error
> REQUEST_METHOD POST
> HTTP_USER_AGENT Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
> HTTP_ACCEPT */*
> HTTP_REFERER https://www.sotonians.com/t/apologies/4530/5
> HTTP_X_FORWARDED_FOR 86.166.210.223
> HTTP_X_REAL_IP 86.166.210.223
> params message Uncaught TypeError: Cannot read property 'animate' of undefined Url: https://www.sotonians.com/assets
> --- --- --- ---
> --- ---
> url https://www.sotonians.com/assets/plugin-third-party-2a3b9024b0e6d5edc1f2e53c4b4d2d7231008bcb912ad43b2
> line 13
> column 11562
> window_location https://www.sotonians.com/t/apologies/4530/5
> stacktrace TypeError: Cannot read property 'animate' of undefined at s.collapse (https://www.sotonians.com/a
> 
> ```

I’ve traced the .js file that is mentioned and have found the line/col references and it seems to point to this part of the source for QMP.

> <https://github.com/paviliondev/discourse-quick-messages/blob/cd96d0390acf908115ba831c2d6eef0fdf6020d5/assets/javascripts/discourse/components/docked-composer.js.es6#L195>

I’m not actually noticing any specific problem in the UI, and despite looking like a serious error (`this` not being defined) it is only flagged as a warning.

Anyway, I thought I’d pass it on so when you’ve next got the bonnet (hood) open you can take a look.

---

<div class="post-metadata">

### Author: ![Sevosik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sevosik/32/80703_2.png) [@Sevosik](https://meta.discourse.org/u/Sevosik)
#### Post date: [August 29, 2018, 9:34pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/321 "2018-08-29T21:34:03Z")

</div>

Quick Messages icon doesn’t appear for me.

---

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [August 29, 2018, 9:45pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/322 "2018-08-29T21:45:21Z")

</div>

> [@Sevosik](#):
>
> Quick Messages icon doesn’t appear for me.

Any more details @Sevosik?

I had my avatar disappear with a previous version. See [above](https://meta.discourse.org/t/quick-messages-plugin/39188/318).

---

<div class="post-metadata">

### Author: ![Sevosik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sevosik/32/80703_2.png) [@Sevosik](https://meta.discourse.org/u/Sevosik)
#### Post date: [August 29, 2018, 9:48pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/323 "2018-08-29T21:48:23Z")

</div>

> [@bletch](#):
>
> I had my avatar disappear with a previous version. See [above](https://meta.discourse.org/t/quick-messages-plugin/39188/318).

Nah, avatar is fine. PM icon doesn’t appear. That’s only what I see:

![image](https://global.discourse-cdn.com/meta/original/3X/2/5/2535862109ddb2b7a81d323be08626cf6aaf996b.jpeg)

---

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [August 29, 2018, 9:56pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/324 "2018-08-29T21:56:39Z")

</div>

Does the plugin show as loaded and enabled on the Admin / Plugin page?

---

<div class="post-metadata">

### Author: ![Sevosik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sevosik/32/80703_2.png) [@Sevosik](https://meta.discourse.org/u/Sevosik)
#### Post date: [August 29, 2018, 10:00pm UTC](https://meta.discourse.org/t/quick-messages-plugin/39188/325 "2018-08-29T22:00:26Z")

</div>

Yes, it does.

![image](https://global.discourse-cdn.com/meta/original/3X/2/8/28b26d4da71015ebc50f7f865edbcd35c89f57bc.png)

[Previous page](https://meta.discourse.org/t/quick-messages-plugin/39188.md?page=15)

[Next page](https://meta.discourse.org/t/quick-messages-plugin/39188.md?page=17)
