Commit Graph

37 Commits (5b8bb3e4266ddde8a123d01e03f4c09d2b51e6e1)

Author SHA1 Message Date
Julian Lam 4fb271c684
System chat messages ()
* fix: removed duplicate checkContent call in addMessage

addMessage is called in one place (sendMessage), and the checks
are already contained there. addMessage is the lower level call
and so should be called only from within core itself.

* feat:  chat system messages for join, leave, rename

* fix: add back content checking in .addMessage();

* fix: tests, and added .addSystemMessage() method

Tests were relying on message indices that changed due to the
new system messages.

* feat: add tests for system chat messages

* refactor: rewrite half of src/messaging/rooms.js, fix tests

* feat:  messaging/room.js

* fix: tests for messaging/room.js, 

* fix: trying to fix tests

* fix: omg :rage2:
Barış Soner Uşaklı bc41848adb fix: test
Barış Soner Uşaklı e55fb43703 fix:
Barış Soner Uşaklı 805da98a36 remove unnecessary groups.resetCache calls
Julian Lam a08572b800 kick support for chats,
Julian Lam 1ce448f2a1 Merge remote-tracking branch 'origin/master' into develop
Baris Usakli e99d4a5c61 closes
Julian Lam c47987b305 fixed test for error when adding self to chat
Julian Lam d1ccd78ac2 Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı ff6c6a54c1 make upload permissions global
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
Julian Lam 82a95a03be Chat message soft deletion -- closes
Squashed commit of the following:

commit f84c06bdcc45f24ef7ffde6a8f33b48d8f97fc36
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 14:42:47 2017 -0500

    added restore handler for chat messages

commit 725cd370c6ea1e8f4a28298350f3dc024d4e668e
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 14:23:52 2017 -0500

    backend logic and testing complete for deletion and restoration of chat messages

commit 072da758319cc93fa4c6f8bc0d672a1b716dc06e
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 13:52:35 2017 -0500

    changing message delete logic to not remove mids, but to filter when retrieving

commit 68bf373305ab82737658a7c31dc5549af4d6d69f
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 12:37:58 2017 -0500

    logic to handle deletion of a deleted chat message -- added some failing tests

commit 6899d0d234fa752e227188aa69cfcabd0d0500cc
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Dec 18 11:35:36 2017 -0500

    chat message deletion logic
Baris Usakli b19310049d closes
Barış Soner Uşaklı 3bf7faf5fc increase rate limit delay
Barış Soner Uşaklı a46db9616c fix message delete and add test
Baris Usakli 37a8247293 add test for teaser content escape
Peter Jaszkowiak 1471fbdc14 Fix tests
Peter Jaszkowiak b171f3072b Fix many "duplicate key" errors
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
Barış Soner Uşaklı c364cebbe4 more tests
Barış Soner Uşaklı 7fb45cc148 more tests
barisusakli b8c606cbbd closes
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files
barisusakli 5c01c7b1c7 delayed notification test
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
barisusakli 1c6cee207f meta/settings test
barisusakli b807915515 removed incorrect markread nid
barisusakli 5d6e2ad083 multiple test fixes
barisusakli fda535a351 more chat tests
barisusakli d23966c534 more tests
barisusakli 553ee7dcdd more chat tests
barisusakli 0d90279463 chat controller test
barisusakli f0f3a86908 closes
write more messaging tests
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
barisusakli 1a63672e66 more test fixes
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 4c6a75d85c Rename tests folder to test to follow standards