Commit graph

61 commits

Author SHA1 Message Date
ginnyTheCat
4291005161
Handle nested lists (#853)
* Handle nested lists

* Allow heading to not be followed by an empty line

* Don't parse as inline code if contains newlines

* Use escape rule in plain as well
2022-09-25 19:31:59 +05:30
ginnyTheCat
cbd1bf35c6
Only escape when editing (#852)
* Only escape when editing

* Base edit change detection on rendered content
2022-09-17 16:55:26 +05:30
ginnyTheCat
a8f374dd43
Parsing HTML to Markdown AST (#847)
* Force mentions to have a space after the #

* Use types for rendering

* Parse HTML

* Add code block support

* Add table support

* Allow starting heading without a space

* Escape relevant plaintext areas

* Resolve many crashes

* Use better matrix id regex

* Don't match . after id

* Don't parse mentions as links

* Add emote support

* Only emit HTML link if necessary

* Implement review changes
2022-09-16 21:21:53 +05:30
ginnyTheCat
15c1f6dadf
Allow rendering messages as plaintext (#805)
* Parse room input from user id and emoji

* Add more plain outputs

* Add reply support

* Always include formatted reply

* Add room mention parser

* Allow single linebreak after codeblock

* Remove margin from math display blocks

* Escape shrug

* Rewrite HTML tag function

* Normalize def keys

* Fix embedding replies into replies

* Don't add margin to file name

* Collapse spaces in HTML message body

* Don't crash with no plaintext rendering

* Add blockquote support

* Remove ref support

* Fix image html rendering

* Remove debug output

* Remove duplicate default option value

* Add table plain rendering support

* Correctly handle paragraph padding when mixed with block content

* Simplify links if possible

* Make blockquote plain rendering better

* Don't error when emojis are matching but not found

* Allow plain only messages with newlines

* Set user id as user mention fallback

* Fix mixed up variable name

* Replace replaceAll with replace
2022-09-14 14:30:06 +05:30
Ajay Bura
2ded7d9b1f Fix crash with unknown mime type 2022-09-07 08:40:10 +05:30
Ajay Bura
e6661d3b0d
Remove favicons-webpack-plugin (#811)
* Remove favicons-webpack-plugin

* Copy android/* icons to dist

* Add favicon ico
2022-09-04 19:23:02 +05:30
ginnyTheCat
678e0dc6ac
Allow mimetypes with suffix in safe check (#808) 2022-09-04 19:15:07 +05:30
Ajay Bura
bdc10fb729 Fix multiple favicon changing request 2022-09-04 13:33:41 +05:30
Ajay Bura
584fa87bbd
Notification settings (#807)
* Add account data hook

* Add options to change global notification

* Add options to add keywords

* Fix wrong notification count

* Show unread badge in favicon (#251)

* Fix favicon badge

* Fix bug

* Fix favicon not updating

* Add favicon svg's

* remove dead code
2022-09-04 13:10:07 +05:30
ginnyTheCat
80aa55b706
Rework Markdown parsing (#719)
* Switch markdown parser

* Add inline maths

* Basic plain text rendering

* Add display math support

* Remove unnecessary <p> tag

* Fixed spoiler not working

* Add spoiler reason input support

* Make paragraphs display with newline in between

* Handle single newlines

* Fix typo when allowing start attribute

* Cleanup for merge

* Remove unused import
2022-08-21 19:34:09 +05:30
James
a417980a81
Improve MIME type handling on File Upload and in Message Component (#688)
* move allowed MIME types to own util file

* add check for safe MIME type before choosing how to upload

* check for allowed blob type to decide what component to load

* re-add check for safe mimetype

* fix bracket positioning
2022-08-14 16:31:17 +05:30
Ajay Bura
258afec391 Only render mxc images in markdown 2022-08-11 17:20:55 +05:30
Ajay Bura
3c1cc59d59 Escape html with markdown off (#732) 2022-08-11 14:28:39 +05:30
Ajay Bura
ce1e263d57 Only scale image bigger than 512px (#731) 2022-08-11 13:33:54 +05:30
Ajay Bura
edace32213
Custom emoji & Sticker support (#686)
* Remove comments

* Show custom emoji first in suggestions

* Show global image packs in emoji picker

* Display emoji and sticker in room settings

* Fix some pack not visible in emojiboard

* WIP

* Add/delete/rename images to exisitng packs

* Change pack avatar, name & attribution

* Add checkbox to make pack global

* Bug fix

* Create or delete pack

* Add personal emoji in settings

* Show global pack selector in settings

* Show space emoji in emojiboard

* Send custom emoji reaction as mxc

* Render stickers as stickers

* Fix sticker jump bug

* Fix reaction width

* Fix stretched custom emoji

* Fix sending space emoji in message

* Remove unnessesary comments

* Send user pills

* Fix pill generating regex

* Add support for sending stickers
2022-08-06 09:04:23 +05:30
Ajay Bura
4427b3b291 Accept mxid on login (#187) 2022-07-09 13:58:57 +05:30
Krishan
ca2627d3cf
Bump linkifyjs 2.1.9 to 4.0.0-beta.5 (#665) 2022-07-08 20:29:07 +05:30
Krishan
47e6527b0e
Don't enable e2ee from profileViewer for bridge users (#666) 2022-07-08 20:24:35 +05:30
Chuang Zhu
a6f21b6606
Fix parsing encoded matrix.to URL (#660)
From https://spec.matrix.org/v1.3/appendices/#matrixto-navigation:

	The components of the matrix.to URI (<identifier> and <extra parameter>) are to be percent-encoded as per RFC 3986.

	Historically, clients have not produced URIs which are fully encoded. Clients should try to interpret these cases to the best of their ability. For example, an unencoded room alias should still work within the client if possible
2022-07-04 19:50:11 +05:30
ginnyTheCat
3da9b70632
Show devices without encryption support separately from unverified session (#499)
* Show devices without encryption support separately

* Fix typo

* Don't show sessions without encryption support in red
2022-04-24 21:59:50 +05:30
ginnyTheCat
b7c5902f67
Add LaTeX / math input and rendering support (#345)
* Initial display support

* Use better colors for error in math parsing

* Parse math markdown

* Use proper jsx

* Better copy support

* use css var directly

* Remove console.debug call

* Lazy load math module

* Show fallback while katex is loading
2022-04-24 21:18:35 +05:30
Ajay Bura
989ab5a432
Add support to manage cross-signing and key backup (#461)
* Add useDeviceList hook

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

* Add isCrossVerified func to matrixUtil

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

* Add className prop in sidebar avatar comp

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

* Add unverified session indicator in sidebar

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

* Add info card component

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

* Add css variables

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

* Add cross signin status hook

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

* Add hasCrossSigninAccountData function

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

* Add cross signin info card in device manage component

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

* Add cross signing and key backup component

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

* Fix typo

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

* WIP

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

* Add cross singing dialogs

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

* Add cross signing set/reset

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

* Add SecretStorageAccess component

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

* Add key backup

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

* WIP

* WIP

* WIP

* WIP

* Show progress when restoring key backup

* Add SSSS and key backup
2022-04-24 15:42:24 +05:30
Krishan
fe997d8b01
Fix loading on older browsers (#424) 2022-03-23 18:33:19 +05:30
Nitan Alexandru Marcel
a2655ee6a5
Fix loading on older browsers (#397) 2022-03-18 09:06:48 +05:30
Ajay Bura
5a299b21c5
Sort direct messages by activity (#393)
* Add sort util

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

* Use sort util for members

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

* Sort dms by activity

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

* Sort dms activily

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

* Chanege roomIdByLastActive func name

Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-17 16:55:16 +05:30
Ajay Bura
21ceb4fdc4 Fix room with join rule knock looks dm
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-06 17:48:31 +05:30
Ajay Bura
8df630ee0c Update postie to have multiple inbox
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-03 18:33:58 +05:30
Ajay Bura
6c4085398e Add option to add existing room in space
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-02-23 19:30:48 +05:30
ajbura
189dc93a6e Add join rle to icon src util function
Signed-off-by: ajbura <ajbura@gmail.com>
2022-02-16 19:52:51 +05:30
ginnyTheCat
8d3f0a9f4d
Create icons for users without an avatar in desktop notifications (#305)
* Add notifications icon for users without an avatar

* Render icon at higher resolution

* Use scale to render at higher resolution
2022-02-15 17:18:25 +05:30
ajbura
c8ae428df8 Keep direct rooms orthogonal (#183)
Signed-off-by: ajbura <ajbura@gmail.com>
2022-02-05 19:25:59 +05:30
ginnyTheCat
0e8219b200
Add support for sending spoiler markdown (#267)
* Basic spoiler markdown plugin

* Remove console.log statement
2022-01-31 21:28:42 +05:30
ginnyTheCat
ab3d9ddb13
Normalize unicode search (#263)
* Normalize unicode search

* Add option to setup function

* Make the call to normalize more explicit
2022-01-27 15:35:53 +05:30
Ajay Bura
e4f7c6add9 Show underline on link hover
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-01-25 12:15:47 +05:30
Ajay Bura
cb23991841 Add ReusableContextMenu component
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-01-11 20:43:40 +05:30
Ajay Bura
54635bf0d3 Add ability to manage room addresses
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-01-01 11:43:35 +05:30
Ajay Bura
18dc02c700 Fix mxid colors for dark theme
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-16 18:39:44 +05:30
Ajay Bura
c9ec161ccc Add search modal (#132)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-10 17:22:53 +05:30
Ajay Bura
9365e5bfb9 Fix bug
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-09 19:01:39 +05:30
Ajay Bura
a70245a3b1 Fix date in same day
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-12-08 21:52:25 +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
50db137dea Add export E2E key (#178) 2021-12-06 10:22:45 +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
72f476a750 Fix sinitizeText
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-23 12:30:40 +05:30
Ajay Bura
647d085c5f Twemojified all text
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-23 11:56:02 +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
Ajay Bura
a83aecaa69 Full UIAA implement (#93), #32, #146, #64, #102
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-06 15:15:35 +05:30
Ajay Bura
3d885ec262 Added debounce, throttle, getUrlParams
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2021-11-06 15:12:36 +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