JC Brand
f3a1351a42
muc: loosen isJoined
criteria
...
Handle any `error` IQ result or timeout from a MUC ping as indication that we're no longer joined.
2019-12-11 10:06:03 +01:00
JC Brand
720087bef2
controlbox: remove unnecessary overrides
2019-12-11 08:38:28 +01:00
JC Brand
a4567ee075
muc: Store connection_status
in session storage
...
Otherwise we might run into a situation where a very old,
cached MUC that's being restored has `connection_status` set to ENTERED
(and the user happens to be in the MUC via another client)
and then restores cached messages without taking
`clear_messages_on_reconnection` into account.
2019-12-11 08:10:27 +01:00
JC Brand
09b085be6e
muc: no need to override tearDown
...
we already listen for `beforeTearDown` and do what's necessary there.
2019-12-11 08:10:25 +01:00
JC Brand
8125eaed57
chatboxviews: Remove ineffectual override
...
`initStatus` is no longer on the `_converse` object, so the override
wasn't being applied and chat boxes get closed when the
`clearSession` event fires.
2019-12-10 15:21:28 +01:00
JC Brand
306748feb0
muc-views: no need to set nickname before calling join
...
It was in any case setting the wrong key, should've been `nick`
2019-12-09 17:17:40 +01:00
JC Brand
3d3738f3be
muc: refactor MUC joining
...
We now distinguish more clearly between joining and re-joining a MUC.
The `enterRoom` method has been refactored away.
Instead, `join` or `rejoin` should be used, depending on the circumstances.
Don't fetch cached occupants in the `initialize` function, instead, only fetch
them if we're restoring a MUC that we're still connected to.
If we're not restoring a still-connected MUC, then we clear the
occupants cache, and the messages cache if `clear_messages_on_reconnection` is `true`.
updates #1807
updates #1808
2019-12-09 17:17:33 +01:00
JC Brand
7bf39a092f
muc: move message handler into own method
2019-12-06 13:09:09 +01:00
Dele Olajide
890db3427f
Handle message notifications about affiliation change for users not in a room
...
See https://git.happy-dev.fr/startinblox/components/sib-chat/issues/96
2019-12-06 12:55:07 +01:00
JC Brand
c646879cca
Ping the server when the tab becomes visible
2019-12-06 10:57:52 +01:00
JC Brand
5b507ec74e
muc: check that we're still connected if the tab becomes visible
...
Otherwise Converse might only realise we're no longer in the room when
the user tries to interact with it.
2019-12-05 22:29:37 +01:00
JC Brand
7866247f5d
dragresize: Unregister global event handlers
2019-12-05 21:02:06 +01:00
raphaelSeguin
97b8ecbbdf
Display status avatars in the occupants list
2019-12-05 14:13:52 +01:00
Nÿco
0082c0ce60
More visual README for users
...
* Add screenshot for embedded view mode
* Add Pàdé
2019-12-05 10:21:41 +01:00
JC Brand
b1c9af3ed0
Various improvements to resizing of occupants view.
...
- Remove need for the `converse-mouse-events` plugin.
- Register `mousemove` and `mouseup` handlers only when necessary and only inside the MUC DOM element.
- Restore converse-dragresize to roughly it's original state before work started on this.
- Move `applyDragResistance` to utils.
updates #1640
2019-12-05 09:32:48 +01:00
JC Brand
0c4da63e07
Merge branch 'pullRequest_SkalierungTeilnehmerListe' of github.com:worlword/converse.js
2019-12-04 14:55:47 +01:00
poVoq
8e19ae7824
Added Chimeverse and UT app
2019-12-04 14:49:46 +01:00
JC Brand
115abdda27
muc-views: pass all model attributes to template
...
Makes it possible to show a validation message in a downstream
application.
2019-12-03 15:02:37 +01:00
JC Brand
dffe3d1a26
smacks: Set enable_smacks
to true
as default
2019-12-03 13:54:28 +01:00
JC Brand
c3447dd205
New config option: `persistent_store
`
...
Allows for using IndexedDB as the persistent store, instead of localStorage
2019-12-03 13:51:57 +01:00
JC Brand
5232019ed7
roster: Replace lodash methods with native ones
2019-12-03 12:37:26 +01:00
JC Brand
7fc3151e56
Fixes #1783
2019-12-03 11:31:28 +01:00
JC Brand
5809c97828
Fixes #1666 . Fixes #1792 . Add scrollbars for modals
2019-12-03 11:08:35 +01:00
JC Brand
9bff567b3c
Fixes #1796
2019-12-03 10:57:01 +01:00
JC Brand
f1e1e538b6
muc-views: Wait for messages to be fetched
...
Also, insert occupants sidebar before inserting the chat into the DOM
2019-12-02 14:00:21 +01:00
JC Brand
099603ed8b
chatview: Reduce debounce time for markScrolled from 100ms to 50ms
2019-12-02 13:59:58 +01:00
JC Brand
fc42f2903c
muc-views: enterRoom should be called on the model
2019-12-02 13:45:35 +01:00
JC Brand
d2cf29bce4
muc: One more place to fetch messages
...
When restoring an already entered room from cache.
Otherwise we end up with an empty history.
2019-11-29 17:04:54 +01:00
JC Brand
1c116b0385
mam: distinguish between messages fetched before and after MUC join
2019-11-29 16:17:48 +01:00
JC Brand
a9128808de
muc: Re-render the bottom panel once we enter the MUC
...
Otherwise we end up with no textarea when rendering a MUC that starts
with connection_status of entered but which then needs to reconnnect.
2019-11-29 16:17:28 +01:00
JC Brand
53ced8c763
muc: Don't restore messages from cache...
...
if we're just going to clear them again
This avoids flashing of messages followed by a spinner.
2019-11-29 09:58:38 +01:00
aitzol berasategi
a8cfc12fac
Translated using Weblate (Basque)
...
Currently translated at 88.2% (374 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/eu/
2019-11-29 09:28:19 +01:00
Yaron Shahrabani
8a93b74f68
Translated using Weblate (Hebrew)
...
Currently translated at 93.4% (396 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/he/
2019-11-29 09:28:19 +01:00
Xosé M
c7e12b1aef
Translated using Weblate (Galician)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2019-11-29 09:28:19 +01:00
Guybrush Threepwood
ef79a9fc82
Translated using Weblate (Bulgarian)
...
Currently translated at 35.4% (150 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/bg/
2019-11-29 09:28:19 +01:00
JC Brand
970143fcd2
Translated using Weblate (Afrikaans)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
2019-11-29 09:28:19 +01:00
Ömer Çakmak
18fbfd2ce5
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/
2019-11-29 09:28:19 +01:00
Allan Nordhøy
14a23afcef
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 70.8% (300 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
2019-11-29 09:28:19 +01:00
Quentí
c2fd4159c9
Translated using Weblate (Occitan)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/oc/
2019-11-29 09:28:15 +01:00
Antonio Morais
e88f54f3d4
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 82.5% (350 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
2019-11-29 09:28:15 +01:00
Rambox
24073ddb48
Translated using Weblate (Polish)
...
Currently translated at 72.2% (306 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pl/
2019-11-29 09:28:15 +01:00
x0draude
8c89e6a57c
Translated using Weblate (Portuguese)
...
Currently translated at 76.7% (325 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/
2019-11-29 09:28:15 +01:00
Nathan
e96814a188
Translated using Weblate (French)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2019-11-29 09:28:15 +01:00
Sylke Vicious
c4fc397653
Translated using Weblate (Italian)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
2019-11-29 09:28:15 +01:00
nautilusx
563f1512df
Translated using Weblate (German)
...
Currently translated at 100.0% (424 of 424 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2019-11-29 09:24:34 +01:00
JC Brand
d7d810ba89
Improvements to rendering MUC MAM logs before joining
...
- Add config variable `muc_show_logs_before_join`
- Restore nickname form for the original use-case (when not showing MAM logs before joining).
- Render nickname form in the `.muc-bottom-panel` when showing MAM logs (instead of in a modal)
- Show a message when there aren't any archived messages to show
- Fix converse-mam so that chat logs are properly fetched before entering a MUC
closes #1266
2019-11-29 09:23:15 +01:00
Emmanuel Gil Peyrot
a83911d67f
WIP: Move the nickname selection form to a modal
2019-11-28 15:45:48 +01:00
JC Brand
c836eb401f
disco: Import individual lodash methods
2019-11-26 22:04:50 +01:00
JC Brand
762717dd38
Bugfix. streamFeaturesAdded
triggered too soon.
...
`streamFeaturesAdded` should only be triggered once we've received them
from the server.
This appears to be a timing bug, likely introduced by the IndexedDB
refactoring.
2019-11-26 22:04:50 +01:00
JC Brand
e23c7ce543
More retraction updates
...
- Retracted moderated message are not editable
- Use "removed" for user-facing text
2019-11-26 22:04:38 +01:00