Commit Graph

153 Commits

Author SHA1 Message Date
Anton Grigoryev
342503e07a Feat: Client-side hooks - replace window.trigger (#9679)
* feat/clientside-hooks: replace window.trigger with hooks.fire

* feat(clientside-hooks): Move hooks require to the top

* fix: simplifying complex logical expression

* fix: client-side hook for translator - post-review fixes
2021-08-13 16:58:37 -04:00
Barış Soner Uşaklı
7b4c0a1683 fix: keep query params when switching chat 2021-06-16 09:49:29 -04:00
Peter Jaszkowiak
e128264b66 refactor: change Benchpress.parse to .render (#8856)
It has been deprecated with no warning message for a while
Changing these over before enabling the warning message to reduce spam
2020-11-08 08:17:49 -05:00
Barış Soner Uşaklı
320008cd49 feat: #8509, don't scroll chat to bottom if user scrolled up 2020-07-19 14:34:31 -04:00
Julian Lam
922d49be0b fix(style): switch..case 2020-06-03 11:26:08 -04:00
Barış Soner Uşaklı
be305410fb fix: #8293, don't show error if there are no self messages 2020-05-05 09:42:29 -04:00
Barış Soner Uşaklı
067034082f fix: #6422, update deleted/restored messages 2020-02-14 23:26:54 -05:00
Barış Soner Uşaklı
95a372df85 fix: #7977, fix undefined url (#7978) 2019-10-16 17:42:02 -04:00
Barış Soner Uşaklı
781b3f1a9a fix: #7800, dont crash on resize 2019-09-17 14:00:36 -04:00
Julian Lam
ab0e547d23 fix: autocomplete not triggered if chat switched 2019-02-13 11:02:57 -05:00
Julian Lam
6c2f48f189 fix: #7366 2019-02-13 10:54:21 -05:00
Julian Lam
02a8ed9b11 feat: textcomplete over jquery-textcomplete, closes #7309 2019-01-28 13:05:46 -05:00
Barış Soner Uşaklı
95ace13599 add loading=false 2018-09-26 22:05:01 -04:00
Barış Soner Uşaklı
ef55598822 filter messages that are already inserted to DOM 2018-09-26 21:30:29 -04:00
Julian Lam
609f711db0 added logic to handle Chats.switchChat being called with no arguments 2018-07-25 14:15:42 -04:00
Barış Soner Uşaklı
b0dad9bd7f closes #6369 2018-05-31 15:05:12 -04:00
Julian Lam
a08572b800 kick support for chats, #6479 2018-04-30 12:35:17 -04:00
Barış Soner Uşaklı
8b16a63cc2 closes #6419 2018-04-03 15:45:32 -04:00
Barış Soner Uşaklı
51bd30fe92 closes #6385 2018-03-23 10:04:30 -04:00
Julian Lam
c20aca8933 decreased full chat height by 1px 2018-01-18 11:41:28 -05:00
Julian Lam
d0a1eb61bc Updates to allow better chats integration
- Removed unused .createTagsInput method
- Firing action:chat.loaded client-side hook in all cases of chat now
  - New chat window (modal)
  - New chat page load
  - Chat switch event
2018-01-12 16:06:43 -05:00
Julian Lam
89383c261f fixed scrollToBottom detection in chats page 2018-01-10 15:12:25 -05:00
Julian Lam
8f5dccdfb5 Chat fixes
- Fixed issue where clicking into a chat didn't update unread state
- Fixed issue where receiving new messages in chat page didn't mark chat
  unread
- Fixed issue where chat title sets were broken in modal and page
- Removed chat leave toggle in chat list (is now in chat dropdown)
2018-01-10 10:53:09 -05:00
Julian Lam
19e53ab61b Lots o' chat changes
- Added chat room management (instead of tagsinput)
- Chat leave button in chat options dropdown
- Refreshing participants when user is added
- Updated autocomplete module so that it can be shown above a modal
  (z-index 100005 > 20000)
- Using cant-chat-with-yourself source string, which wasn't defined
  before, but was still used
2018-01-09 16:30:16 -05:00
Julian Lam
970c8b6f64 Merge branch 'develop' into chat-rewrite 2018-01-06 12:04:17 -05:00
Julian Lam
d1ccd78ac2 Merge remote-tracking branch 'origin/master' into develop 2018-01-06 12:04:07 -05:00
Julian Lam
b2b57d49bf WIP add user modal 2018-01-06 12:03:52 -05:00
Barış Soner Uşaklı
9922720dd3 closes #6209 2018-01-06 11:58:48 -05:00
Julian Lam
cd4d0049e6 fixed broken UI in chat modal, send btn 2018-01-05 14:40:38 -05:00
Julian Lam
82bfd6edfd added a new component shortcut and updated title setting logic 2018-01-04 16:04:02 -05:00
Julian Lam
eea124b312 room rename logic 2017-12-21 16:51:16 -05:00
Julian Lam
e091568d17 closes #6191 2017-12-21 11:19:16 -05:00
Julian Lam
8cb914c15e more fixes to better handle transitioning from chat to chat and closing chats, etc.
also modals no longer used on mobile view at all
2017-12-20 15:34:31 -05:00
Julian Lam
3d74fc8220 some changes to fix class names used, character countdown support, etc. 2017-12-20 12:58:59 -05:00
Julian Lam
d967201b2a drastically simplified main window resizing logic, some language changes 2017-12-19 16:27:41 -05:00
Julian Lam
82a95a03be Chat message soft deletion -- closes #6181
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
2017-12-18 14:45:06 -05:00
Barış Soner Uşaklı
e4ff1dc61b closes #6174 2017-12-15 10:21:33 -05:00
Barış Soner Uşaklı
80ecd4ba6d closes #6036 2017-11-03 16:32:33 -04:00
Peter Jaszkowiak
71aab79a9a Switch client t.js usage to Benchpress 2017-08-30 11:31:29 -06:00
Baris Usakli
27a6b8a713 lint fixes 2017-08-11 11:55:46 -04:00
Julian Lam
d9ad26c7c5 the meat of #5862, making chat loading not require an ajaxification 2017-08-10 17:00:43 -04:00
Julian Lam
902b823f4d adding mobile handling of chats' recent list links 2017-08-10 16:21:28 -04:00
Julian Lam
bc9a125034 re: #5862, setting chat list height even if no message list is present 2017-08-10 15:28:09 -04:00
barisusakli
fb3020f892 closes #5604 2017-04-17 18:59:46 -04:00
Peter Jaszkowiak
484a800327 Merge branch master into develop 2017-04-12 21:11:39 -06:00
Anil Mandepudi
da183e196a Fixes #5572 (#5575)
* Fixes #5572

* Adding trailing commas but in protest
2017-04-07 14:35:24 -04:00
barisusakli
1301fb1f34 on chat leave close the modal 2017-03-07 19:51:52 +03:00
Peter Jaszkowiak
c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs 2017-02-18 14:42:15 -07:00
Peter Jaszkowiak
144fa8698c Eslint no-lonely-if 2017-02-18 14:32:35 -07:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00