# Babble Chat

**URL:** https://meta.discourse.org/t/babble-chat/87297
**Category:** Plugin
**Tags:** broken
**Created:** [May 11, 2018, 10:08pm UTC](https://meta.discourse.org/t/babble-chat/87297 "2018-05-11T22:08:04Z")
**Posts on this page:** 20
**Page:** 8

<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: [September 3, 2018, 6:34pm UTC](https://meta.discourse.org/t/babble-chat/87297/148 "2018-09-03T18:34:14Z")

</div>

Hmm, some hint which may be useful for Discourse Team (or some experienced person)… I clicked on the blue dot next to the topic, which means it’s new. The content isn’t displayed, a tool appears on the right to delete it and I clicked it. The topic is still on the forum. 😕 I got this error in the console:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/4/d454971434d621e5f5f1d5e5bede45cc45c71335.png)

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 3, 2018, 8:03pm UTC](https://meta.discourse.org/t/babble-chat/87297/149 "2018-09-03T20:03:27Z")

</div>

Oooof, stable is actually a bit old at the moment (~1.4k commits behind master); the deprecation error was put in July 20, so I’d assume the `DB` functionality was put in before that.

[https://github.com/discourse/discourse/commit/44091f20c6e3530b4b97f1258d0d4d855621eff0#diff-6b762b989da3978cbbbae52732c72346](https://github.com/discourse/discourse/commit/44091f20c6e3530b4b97f1258d0d4d855621eff0#diff-6b762b989da3978cbbbae52732c72346)

Any idea when we’ll get a stable version bump @sam?

In the meantime, I’ve cut a branch called `stable` which you can pull; it shouldn’t affect this functionality.

```plaintext
git clone -b stable git@github.com:gdpelican/babble.git

```

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 3, 2018, 8:11pm UTC](https://meta.discourse.org/t/babble-chat/87297/150 "2018-09-03T20:11:41Z")

</div>

@Sevosik You can get rid of those by running

```plaintext
# to hide topics from the interface, but keep in the DB in case you need to restore them (recommended)
Topic.where(archetype: :chat).update_all(deleted_at: Time.now)
# to remove chat topics and their content from the database completely
Topic.where(archetype: :chat).destroy_all
Group.where(visibility_level: 4).destroy_all

```

in your rails console.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 3, 2018, 8:23pm UTC](https://meta.discourse.org/t/babble-chat/87297/151 "2018-09-03T20:23:46Z")

</div>

> [@gdpelican](#):
>
> Any idea when we’ll get a stable version bump

> [@Discourse Version 2.1](https://meta.discourse.org/t/discourse-version-2-1/86339):
>
> Focuswhite_check_mark add “welcome to our community” PM for users who successfully transition between TL0 (new signup) and TL1 (15 mins reading, 5 topics entered, etc) white_check_mark Improve [handling](https://meta.discourse.org/t/disclosure-of-s3-secret-access-key/87221/22) of site setting secrets @techAPJwhite_check_mark [2FA Backup codes](https://meta.discourse.org/t/2fa-backup-codes/87038) @majawhite_check_mark allow selecting a tag when moving posts to a new topic, if tags are enabled (right now you can only pick category) @majawhite_check_mark Upgrade ImageMagick to ImageMagick 7 (6 is …

Currently scheduled for September 10th

---

<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: [September 3, 2018, 9:44pm UTC](https://meta.discourse.org/t/babble-chat/87297/152 "2018-09-03T21:44:41Z")

</div>

Expect a bump in stable in 1-2 weeks

---

<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: [September 4, 2018, 5:03am UTC](https://meta.discourse.org/t/babble-chat/87297/153 "2018-09-04T05:03:54Z")

</div>

Awesome, it worked. Thanks 😉

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [September 6, 2018, 3:26pm UTC](https://meta.discourse.org/t/babble-chat/87297/154 "2018-09-06T15:26:16Z")

</div>

I am not receiving notifications of new chats in Groups or Categories, PM notifications are working. I see nothing in the logs and just updated everything this morning. Also when I view a PM the notification count is not clearing out consistently. There is nothing in the logs currently.

> **[TechSmith Screencast](https://app.screencast.com/)**
>
> World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 6, 2018, 9:29pm UTC](https://meta.discourse.org/t/babble-chat/87297/155 "2018-09-06T21:29:35Z")

</div>

Alright, I’ve pushed a fix to be a bit more secure about ‘reading’ things on the server when you see them (before we did it on scroll, now we do it on scroll and if the post is in view when the chat’s opened)

I wasn’t able to reproduce any problems with group or category notifications; can you be a bit more specific about which notifications you’re expecting and not receiving?

---

<div class="post-metadata">

### Author: ![valsou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valsou/32/119628_2.png) [@valsou](https://meta.discourse.org/u/valsou)
#### Post date: [September 9, 2018, 12:33pm UTC](https://meta.discourse.org/t/babble-chat/87297/156 "2018-09-09T12:33:01Z")

</div>

Hello,

First of all, thank you for the plugin.

Most of our users use their phones to reach the board. When they open the chat the form to text a message opens instantly. On a phone it means half of the screen is cut off.

Before the textarea you could create a hidden input in order to put the focus on it.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 9, 2018, 2:51pm UTC](https://meta.discourse.org/t/babble-chat/87297/157 "2018-09-09T14:51:01Z")

</div>

Thanks for the report, that change makes sense to me. I’ve made the change, but won’t get a chance to push it until tomorrow. 🏖

---

<div class="post-metadata">

### Author: ![JanJoost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janjoost/32/97173_2.png) [@JanJoost](https://meta.discourse.org/u/JanJoost)
#### Post date: [September 16, 2018, 7:31pm UTC](https://meta.discourse.org/t/babble-chat/87297/158 "2018-09-16T19:31:02Z")

</div>

Hi! I think I’ve got an interesting issue here!

The user preference pane now allows you to disable Babble completely. That works, check the checkbox and click save and it’s gone. However, if you want Babble back, then unchecking the box and clicking save doesn’t work. It’ll tell you it saved the settings, but once you reload the screen, the checkbox is checked again.

I’ve tried it with the following version:

- Discourse v.2.2.0-beta2 +5
- Babble version 8fc6664 - this is identical to master (I just upgraded to the now latest version)

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 16, 2018, 7:48pm UTC](https://meta.discourse.org/t/babble-chat/87297/159 "2018-09-16T19:48:30Z")

</div>

I reckon that’ll have to do with @david’s custom setting changes, which I’m aware of but will need to grab some time to properly look at in the near future.

EDIT: This should now be fixed in latest.

---

<div class="post-metadata">

### Author: ![JanJoost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janjoost/32/97173_2.png) [@JanJoost](https://meta.discourse.org/u/JanJoost)
#### Post date: [September 17, 2018, 9:17am UTC](https://meta.discourse.org/t/babble-chat/87297/160 "2018-09-17T09:17:21Z")

</div>

@gdpelican

Thank you! I’ll roll out and test, will let you know!

---

<div class="post-metadata">

### Author: ![bangarang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bangarang/32/63023_2.png) [@bangarang](https://meta.discourse.org/u/bangarang)
#### Post date: [September 18, 2018, 11:20am UTC](https://meta.discourse.org/t/babble-chat/87297/161 "2018-09-18T11:20:34Z")

</div>

since one of the last updates the chat on my instance will be opened by default on desktop visits, regardless of the `babble open by default` setting. on mobile their is no such behavior. is there an issue?

is it possible to also have an option for the user preference to open babble on default?

thanks!

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 18, 2018, 7:37pm UTC](https://meta.discourse.org/t/babble-chat/87297/162 "2018-09-18T19:37:55Z")

</div>

That setting won’t ever take effect on mobile, as it takes up the whole screen, and presumably you’re still visiting the forum for the forum.

I’ve just updated [discourse-babble.com](http://discourse-babble.com) to the latest versions of babble and discourse, and am not seeing the issue that you describe. Are you running any other third-party plugins, or any theme components with custom javascript? How many chat channels do you have?

Moving that setting to a user preference seems like a good call; I’ll put that in either today or this weekend.

EDIT: I just pushed a fix for your issue and moved the open by default setting to a per-user setting, so pull latest and let me know if that’s better for ya.

---

<div class="post-metadata">

### Author: ![JanJoost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janjoost/32/97173_2.png) [@JanJoost](https://meta.discourse.org/u/JanJoost)
#### Post date: [September 18, 2018, 8:14pm UTC](https://meta.discourse.org/t/babble-chat/87297/163 "2018-09-18T20:14:33Z")

</div>

> [@JanJoost](#):
>
> @gdpelican
> 
> Thank you! I’ll roll out and test, will let you know!

I’ve just tested it, and it works. Thanks again!

---

<div class="post-metadata">

### Author: ![will\_io](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/will_io/32/147541_2.png) [@will\_io](https://meta.discourse.org/u/will_io)
#### Post date: [September 19, 2018, 2:31am UTC](https://meta.discourse.org/t/babble-chat/87297/164 "2018-09-19T02:31:51Z")

</div>

The test project at discourse-babble.com is using Discourse `2.2.0.beta2`:

`https://github.com/discourse/discourse version e95d6a12c5f1f51f30fc54186efb3713ad6583bd`

1. When I configure my docker file to use this version hash it instead pulls `5a9b02901481c584cb6a1a382b4b346615ea140e`.

- Compare link: [e95d6a12c5 vs 5a9b029014](https://github.com/discourse/discourse/compare/e95d6a12c5...5a9b029014)

1. I cannot get the one-on-one chats to function properly:  
Screenshot:  
 ![2018-09-18_204318](https://global.discourse-cdn.com/meta/original/3X/0/b/0b0ad7f1e05cbdb890878dd68f9a6634127d5379.jpeg)

**Sample one-on-one chat list-element**

```plaintext
<li class="babble-available-topic row">
  <span class="babble-topic-avatar topic-avatar">
   <img alt="" width="25" height="25" src="/letter_avatar_proxy/v2/letter/d/76d3ee/25.png" title="Dummy_User" class="avatar">
  </span>
  <a class="widget-link" title="">
    <span class="d-label"></span>
  </a>
</li>

```

This is a brand new plugin install but with plenty of current user data. When I used the chrome inspector to populate data it clicks through and I can type messages. But then when I come back to the one-on-one chat the widget-link and d-label never populate. Likewise crucial functionality is also missing.

Any insight on what the issue might be?

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [September 19, 2018, 3:12am UTC](https://meta.discourse.org/t/babble-chat/87297/165 "2018-09-19T03:12:16Z")

</div>

Can you link me to your forum please? Are there any errors in the console or in `/logs`?

---

<div class="post-metadata">

### Author: ![bangarang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bangarang/32/63023_2.png) [@bangarang](https://meta.discourse.org/u/bangarang)
#### Post date: [September 19, 2018, 12:31pm UTC](https://meta.discourse.org/t/babble-chat/87297/166 "2018-09-19T12:31:57Z")

</div>

working flawless now. i only use a single channel on my forum and no third-party plugins or custom javascript.

so…thanks for the fast fix!

---

<div class="post-metadata">

### Author: ![JanJoost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janjoost/32/97173_2.png) [@JanJoost](https://meta.discourse.org/u/JanJoost)
#### Post date: [September 24, 2018, 8:21pm UTC](https://meta.discourse.org/t/babble-chat/87297/167 "2018-09-24T20:21:43Z")

</div>

Hi there!

I’ve found a bug I think. Rendering on mobile phones goes a bit wrong somewhere.

Screenshot with the plugin enabled:

 ![56](https://global.discourse-cdn.com/meta/original/3X/e/a/ea93f7685f773bb63ec1710315dc579c552b3994.png)

Screenshot without the Babble plugin enabled:

 ![07](https://global.discourse-cdn.com/meta/original/3X/8/f/8f49f14cde961df6fbb0381c704d886776ae9687.png)

For the record: I’ve tested this/had this tested with

- Android devices (fully patched)
- iPhone (iOS 11 fully patched)
- Safari on desktop with useragent changed.

The forum runs v.2.2.0.beta2 +107, and Babble is version 4.0.3 (release tag e3edce1).

All show the same result: the black box and the light grey box outline. I can’t say for sure which element this is since I’m really really bad with HTML unfortunately.

But willing to try anything if it helps of course 🙂

[Previous page](https://meta.discourse.org/t/babble-chat/87297.md?page=7)

[Next page](https://meta.discourse.org/t/babble-chat/87297.md?page=9)
