Commit graph

38 commits

Author SHA1 Message Date
Ajay Bura 0b06bed1db
Refactor state & Custom editor (#1190)
* Fix eslint

* Enable ts strict mode

* install folds, jotai & immer

* Enable immer map/set

* change cross-signing alert anim to 30 iteration

* Add function to access matrix client

* Add new types

* Add disposable util

* Add room utils

* Add mDirect list atom

* Add invite list atom

* add room list atom

* add utils for jotai atoms

* Add room id to parents atom

* Add mute list atom

* Add room to unread atom

* Use hook to bind atoms with sdk

* Add settings atom

* Add settings hook

* Extract set settings hook

* Add Sidebar components

* WIP

* Add bind atoms hook

* Fix init muted room list atom

* add navigation atoms

* Add custom editor

* Fix hotkeys

* Update folds

* Add editor output function

* Add matrix client context

* Add tooltip to editor toolbar items

* WIP - Add editor to room input

* Refocus editor on toolbar item click

* Add Mentions - WIP

* update folds

* update mention focus outline

* rename emoji element type

* Add auto complete menu

* add autocomplete query functions

* add index file for editor

* fix bug in getPrevWord function

* Show room mention autocomplete

* Add async search function

* add use async search hook

* use async search in room mention autocomplete

* remove folds prefer font for now

* allow number array in async search

* reset search with empty query

* Autocomplete unknown room mention

* Autocomplete first room mention on tab

* fix roomAliasFromQueryText

* change mention color to primary

* add isAlive hook

* add getMxIdLocalPart to mx utils

* fix getRoomAvatarUrl size

* fix types

* add room members hook

* fix bug in room mention

* add user mention autocomplete

* Fix async search giving prev result after no match

* update folds

* add twemoji font

* add use state provider hook

* add prevent scroll with arrow key util

* add ts to custom-emoji and emoji files

* add types

* add hook for emoji group labels

* add hook for emoji group icons

* add emoji board with basic emoji

* add emojiboard in room input

* select multiple emoji with shift press

* display custom emoji in emojiboard

* Add emoji preview

* focus element on hover

* update folds

* position emojiboard properly

* convert recent-emoji.js to ts

* add use recent emoji hook

* add io.element.recent_emoji to account data evt

* Render recent emoji in emoji board

* show custom emoji from parent spaces

* show room emoji

* improve emoji sidebar

* update folds

* fix pack avatar and name fallback in emoji board

* add stickers to emoji board

* fix bug in emoji preview

* Add sticker icon in room input

* add debounce hook

* add search in emoji board

* Optimize emoji board

* fix emoji board sidebar divider

* sync emojiboard sidebar with scroll & update ui

* Add use throttle hook

* support custom emoji in editor

* remove duplicate emoji selection function

* fix emoji and mention spacing

* add emoticon autocomplete in editor

* fix string

* makes emoji size relative to font size in editor

* add option to render link element

* add spoiler in editor

* fix sticker in emoji board search using wrong type

* render custom placeholder

* update hotkey for block quote and block code

* add terminate search function in async search

* add getImageInfo to matrix utils

* send stickers

* add resize observer hook

* move emoji board component hooks in hooks dir

* prevent editor expand hides room timeline

* send typing notifications

* improve emoji style and performance

* fix imports

* add on paste param to editor

* add selectFile utils

* add file picker hook

* add file paste handler hook

* add file drop handler

* update folds

* Add file upload card

* add bytes to size util

* add blurHash util

* add await to js lib

* add browser-encrypt-attachment types

* add list atom

* convert mimetype file to ts

* add matrix types

* add matrix file util

* add file related dom utils

* add common utils

* add upload atom

* add room input draft atom

* add upload card renderer component

* add upload board component

* add support for file upload in editor

* send files with message / enter

* fix circular deps

* store editor toolbar state in local store

* move msg content util to separate file

* store msg draft on room switch

* fix following member not updating on msg sent

* add theme for folds component

* fix system default theme

* Add reply support in editor

* prevent initMatrix to init multiple time

* add state event hooks

* add async callback hook

* Show tombstone info for tombstone room

* fix room tombstone component border

* add power level hook

* Add room input placeholder component

* Show input placeholder for muted member
2023-06-12 16:45:23 +05:30
Thumbscrew 2055d7a07f
add document.hasFocus check for incoming room events (#1252) 2023-05-28 21:24:10 +05:30
Ajay Bura da92ce3a46
fix: spoiler hidden link click (#1199) 2023-04-16 22:22:01 +10:00
Ajay Bura b3bff6b43f
Edit last message with up arrow key (#774) 2022-08-21 19:41:48 +05:30
ginnyTheCat 21726b63f8
Show full timestamp on hover (#714)
* Show full timestamp on hover

* Not always display time

* Always show full timestamp in search
2022-08-06 09:35:56 +05:30
Ajay Bura 3afc068a02 Fixes #430, #434, #455 2022-05-03 14:05:56 +05:30
Krishan 1a6e3e73c5
String update and file extension name consistency (#436)
* Fixes #434

* Fixes #433

* Prtially fixes #432

* Disable auto labelling of issues

* Use yaml instead of yml as recommended by yaml.org

* shortened the strings

* simplified option description
2022-03-30 13:42:52 +05:30
Ajay Bura 8330f4fba9
Improve jump to unread button (#396)
* Improve jump to unread button

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Remove unused cod

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fix mark as read not hidding jump to unread btn

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Add notification mark as read action

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Add esc as hotkey to mark room as read

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Add message icons

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Change jump to unread icon

Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-18 09:09:14 +05:30
Ajay Bura f5720bde14
Fix new message not appearing (#391)
* Fix new message no appearing

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fix room not marking as read

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fix room automatically gets mark as read

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fix sending wrong read recipt

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fix sending message not mark as read

Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-17 08:16:49 +05:30
Ajay Bura a76dcb289a Improve code quality
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-12 14:14:56 +05:30
Ajay Bura 82948c1f55 Fix new message do not appear sometimes (#185)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-10 17:58:40 +05:30
Ajay Bura 7c368ae029 Fix spolier click not working on some browser
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-25 12:26:20 +05:30
Ajay Bura 631ce7645f Fix msg timeline keep scrolling when not in focus
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-15 17:26:22 +05:30
Ajay Bura 181382b2b7 Fix show msg header after new msgs divider
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-15 17:05:45 +05:30
Ajay Bura ca15e69ae0 Fix multiple new message indicator
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-14 20:47:01 +05:30
Ajay Bura 5d380453a4 Bugs fixed
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-13 21:18:23 +05:30
Ajay Bura 6d358d4087 Bugs fixed
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-13 21:05:37 +05:30
Ajay Bura c22c407ee5 Make spoiler click to toggle (#176)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-13 15:14:57 +05:30
Ajay Bura 6d5d40b8e3 Fix multiple unread divider
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-13 11:03:48 +05:30
Ajay Bura 20443f8a4d Fix crashes
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-10 11:45:43 +05:30
Ajay Bura 74b8a0f10f Fix msg not auto loading backwards
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-09 12:00:19 +05:30
Ajay Bura dde022d179 Add server side aggregated events
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-08 21:23:18 +05:30
Ajay Bura ca55141276 Show date for msgs older than a day
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-08 13:37:25 +05:30
Ajay Bura c1e3645d57 Implement sending read receipt in new pagination
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-07 21:04:07 +05:30
Ajay Bura 5b109c2b79 Improved performance of local timeline pagination
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-04 19:34:22 +05:30
Ajay Bura 25b7093302 Added local timeline pagination
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-04 15:25:14 +05:30
Ajay Bura 38cbb87a62 Added unread indicator (#67), reply link back to original (#96)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-03 18:32:10 +05:30
Ajay Bura 2479dc4096 Use formatted_body to parse markdown (#133) and partially implement #105, #19
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-21 14:30:21 +05:30
Ajay Bura 7e7a5e692e Refectored Message comp
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-20 13:29:32 +05:30
Ajay Bura f628a6c3d6 Updated dependencies
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-19 13:20:34 +05:30
Ajay Bura 57697142a2 Add pagination in room timeline
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-18 13:32:12 +05:30
Ajay Bura 1137c11c59 Bug fixed
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-14 11:31:22 +05:30
Samuel Dionne-Riel 14cd84dab7
Add basic support for displaying emotes (#161) 2021-11-14 10:32:32 +05:30
Samuel Dionne-Riel 6e9394ec7a
Use Unicode aware character-wise slicing (#159) 2021-11-10 13:30:25 +05:30
Gero Gerke fa10a67811
Implement Profile Viewer (#130)
* Implement Profile Viewer

Fixes #111

* Make user avatar in chat clickable

* design progress

* Refactored code

* progress

* Updated chip comp

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Refactored ProfileViewer comp

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Added msg functionality in ProfileViewer

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Added Ignore functionality in ProfileViewer

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Fixed Ignore btn bug

Signed-off-by: Ajay Bura <ajbura@gmail.com>

* Refectored ProfileViewer comp

Signed-off-by: Ajay Bura <ajbura@gmail.com>

Co-authored-by: Ajay Bura <ajbura@gmail.com>
2021-10-18 20:55:52 +05:30
Ajay Bura 2ed4fc9fbf Fixed read recipt issue 2021-09-13 19:47:40 +05:30
unknown 8bf5a6e0bc Added options to control room notifications (#25) 2021-09-09 18:36:39 +05:30
unknown 705910d9e0 Renamed channels to rooms (#30) 2021-08-31 18:43:31 +05:30
Renamed from src/app/organisms/channel/ChannelViewContent.jsx (Browse further)