Babble Chat

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. :confused: I got this error in the console:

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

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.

git clone -b stable git@github.com:gdpelican/babble.git
1 Like

@Sevosik You can get rid of those by running

# 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.

1 Like

Currently scheduled for September 10th

2 Likes

Expect a bump in stable in 1-2 weeks

2 Likes

Awesome, it worked. Thanks :wink:

1 Like

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.

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?

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.

1 Like

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. :beach_umbrella:

1 Like

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)
1 Like

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.

3 Likes

@gdpelican

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

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!

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 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.

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

1 Like

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.
  1. I cannot get the one-on-one chats to function properly:
    Screenshot:
    2018-09-18_204318

Sample one-on-one chat list-element

<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?

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

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!

Hi there!

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

Screenshot with the plugin enabled:
56

Screenshot without the Babble plugin enabled:
07

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 :slight_smile: