JC Brand
a15c9e54d0
Also test for when XEP-0363 is not supported
...
Updates #161
2018-04-22 17:47:34 +02:00
JC Brand
d73394fa37
Add tests for XEP-0363 for MUC
...
Update #161
2018-04-22 17:30:49 +02:00
JC Brand
aacfe3b66b
Don't show MUC CSN if from myself. fixes #1026
2018-04-22 04:26:35 +02:00
JC Brand
74f9952b24
Move sendChatState
methods to the models
2018-04-22 04:25:05 +02:00
JC Brand
2850ef0485
Don't show delayed chat state notifications
2018-04-22 04:09:24 +02:00
JC Brand
f785c2df0a
Fix linting errors
2018-04-18 17:29:51 +02:00
JC Brand
a19e7aeffe
Add support for XEP-0066 Out of band data
2018-04-18 16:58:52 +02:00
JC Brand
d048cff9a8
Provide metadata of file being uploaded.
...
updates #161
2018-04-18 11:49:53 +02:00
JC Brand
463b0e6abe
Fix height for minimized chats toggle
...
Also tweak progress indicator margin
2018-04-18 11:49:28 +02:00
JC Brand
133df99aec
Honor the filesize restrictions of the XMPP server
...
updates #161
2018-04-18 11:35:33 +02:00
JC Brand
95e648e79f
Tweak margin and padding for messages
2018-04-18 08:53:54 +02:00
JC Brand
076ace3fad
Parse and save jabber ❌ data formdata from a disco#info result
2018-04-17 16:42:20 +02:00
JC Brand
c01e9f8265
Move methods from chatbox view to message view
...
Specifically the methods related to requesting an upload slot and uploading a file.
Also show a progress indicator while a file is being uploaded.
Updates #161
2018-04-17 15:21:38 +02:00
JC Brand
db790183d8
Remove unused code
2018-04-17 15:21:38 +02:00
JC Brand
dad8eb2f48
Remove separate file converse-http-file-upload
...
It contained only `overrides` and some HTTP upload code was in other
modules.
Current thinking concerning overrides:
Usage of `overrides`, while useful in certain cases, should in general
be discouraged, since it's in essence "monkey patching" which makes it
more difficult to know whats executing at runtime and more difficult to
refactor.
Splitting modules up between XEPs is not always that useful. Some XEPs,
like HTTP Upload (and MAM comes to mind) have their functionality spread
out over single and group chats (and pubsub) and might for practical
purposes be considered "core" enough to not try and keep them in
separate modules (which inevitably requires overrides or a fundamentally
rethinking the architecture).
Where splitting code between modules makes a lot of sense is in keeping
Backbone Models and Views separate (so that alternative view libraries
like Vue could be used) and probably in keeping Single chats, MUC,
PubSub and MIX separate.
updates #161
2018-04-17 15:21:30 +02:00
JC Brand
de6ecbf07a
Render messages via a new MessageView view
...
updates #161
2018-04-17 15:21:26 +02:00
JC Brand
264e6830af
Remove references to unused parameters
...
updates #161
2018-04-17 15:21:21 +02:00
JC Brand
6cab7fcc41
Fix failing tests due to refactoring
...
updates #161
2018-04-17 15:21:16 +02:00
JC Brand
b889637f8d
Fix height for chatroom forms
2018-04-17 15:21:16 +02:00
JC Brand
584f293d05
Updated and refactored the work from @worlword
...
* Use Promises instead of callbacks
* Update to latest (Last Call) version of XEP-0363
* Move non-view specific methods to models instead
* Add more tests
updates #161
2018-04-17 15:21:09 +02:00
JC Brand
9c2a5bd3b8
Merge branch 'worlword-httpFileUpload' into http-file-upload
2018-04-14 07:50:29 +02:00
JC Brand
042c1947ed
Add file-upload button
2018-04-14 07:40:07 +02:00
JC Brand
a9d2881888
Fix disco hierarchy
...
Previously we kept all entities and their items (which are also
instances of _converse.DiscoEntity) in a flat array.
Instead, we should have a tree-like structure where items are stored
on the relevant entity (and recursively on other items).
2018-04-14 07:36:24 +02:00
JC Brand
77a51cc2a6
Initial work on XEP-0363: HTTP File Upload
2018-04-14 07:36:24 +02:00
JC Brand
d278a02778
General cleanup
2018-04-14 07:34:50 +02:00
JC Brand
2487d4d001
Merge branch 'httpFileUpload' of https://github.com/worlword/converse.js into worlword-httpFileUpload
2018-04-14 07:29:19 +02:00
JC Brand
24d55d6cbd
Remove reference to inverse.min.js
and fix tables
2018-04-13 20:22:58 +02:00
worlword
3b1d27636d
problem fixed, that file-upload would not start. Also did some code cleanup
2018-04-13 11:45:43 +02:00
worlword
ca40cf6541
removed EmptyLines in ChatView.js and Change Lineendings to LF in toolbar_fileUpload.html
2018-04-12 09:37:58 +02:00
worlword
bf3e6f2363
some code-changes to align with the coding standard
2018-04-12 09:24:41 +02:00
worlword
7660dbfb31
merge httpFileUpload-Branch with master
2018-04-12 07:43:39 +02:00
Nÿco
2ec0dd752f
Contributing 3 characters ( #1067 )
...
If "inVerse" is renamed to "fullscreen" then "inVerse" in the fullscreen.html file should be renamed to "Converse"?
2018-04-11 18:47:36 +02:00
JC Brand
3d29567ab6
Revert "Don't show typing from different device
CSN messages"
...
This reverts commit 7303e96cdb
.
Instead of dropping the feature entirely, we can check if the CSN is a
carbon message.
2018-04-11 18:46:50 +02:00
worlword
c9a9d01112
used code from 'http-file-upload' branch. Buttons are now added to the toolbars through converse-http-file-upload.js.
2018-04-11 17:09:32 +02:00
worlword
fa80749658
refactoring based on the review from jcbrand 06.Apr.2018
2018-04-11 15:29:41 +02:00
worlword
fa101d05c3
added tests from http-file-upload-Branch
2018-04-11 07:52:53 +02:00
JC Brand
0a757a25e7
Fixes #1059 Remove bottom borders, uppercase titles and tweak padding
2018-04-10 21:23:32 +02:00
JC Brand
7303e96cdb
Don't show typing from different device
CSN messages
...
To avoid showing them erroneously would mean keeping track of used
message ids which seems like more work than justified by the feature.
Fixes #1026
2018-04-10 20:56:54 +02:00
JC Brand
3d0435a755
Remove hack specific to the soon to be retired Slack XMPP gateway
2018-04-10 20:56:40 +02:00
JC Brand
eddc359a64
Fix height and padding for minimized chats toggle
2018-04-10 20:55:47 +02:00
JC Brand
9528d81c00
Move various MUC methods onto the Backbone.Model
...
To more cleanly separate views and models and to make MUC in headless
mode more viable.
Refs #1032
2018-04-10 18:59:02 +02:00
Kim Alvefur
a82f950e3c
Put timestamp in a <time> tag for better semantics and easier styling
2018-04-07 21:47:22 +02:00
JC Brand
b0c22d983c
Rename inverse.html to fullscreen.html
2018-04-07 08:33:28 +02:00
JC Brand
c3275d91b3
No need for font-awesome. Fix path
2018-04-06 22:28:55 +02:00
JC Brand
9a19d6f446
Use local files to serve the fullscreen version
2018-04-06 22:26:32 +02:00
JC Brand
9a526d4194
Refactoring of the XEP-0085 Chat State Notifications code
...
* Distinguish between CSN messages and other types of messages
* Properly clear previous notifications
* Better handling of notifications from multiple users (in MUC)
* Rename methods to make clarify intent
2018-04-06 17:02:28 +02:00
JC Brand
e961fb5129
Update changelog and re-add CSS files
2018-04-06 10:01:27 +02:00
worlword
258029457f
Removed dist-files from pull request
2018-04-05 08:48:20 +02:00
worlword
7839f20846
fixed sendMessage for so that tests will work again
2018-04-05 08:45:58 +02:00
worlword
76d6b94703
changed testcase for toolbar. now expects 3 buttons instead of 2
2018-04-04 16:41:20 +02:00