Commit graph

618 commits

Author SHA1 Message Date
Ajay Bura
6b559404b2 Add invite list atom 2022-12-27 20:16:13 +05:30
Ajay Bura
582250c419 Add mDirect list atom 2022-12-27 20:15:52 +05:30
Ajay Bura
56a134c85c Add room utils 2022-12-27 20:15:17 +05:30
Ajay Bura
1c7600c3b8 Add disposable util 2022-12-27 20:14:08 +05:30
Ajay Bura
5b41794947 Add new types 2022-12-27 20:13:49 +05:30
Ajay Bura
3cf603bfc6 Add function to access matrix client 2022-12-27 20:12:49 +05:30
Ajay Bura
0a3fe685d1 change cross-signing alert anim to 30 iteration 2022-12-27 20:11:40 +05:30
Ajay Bura
116bf7d2f0 Enable immer map/set 2022-12-27 20:10:43 +05:30
Ajay Bura
899a89cb3b
Replace Webpack to Vite (#1023)
* Add vite, typescript and prettier

* Configure vite

* Fix tsconfig error

* Fix manifest json

* Move manifest json to root

* Bug fix

* Move back manifest json to public
2022-12-20 20:47:51 +05:30
dependabot[bot]
62e0821be2
Bump matrix-js-sdk from 20.1.0 to 21.0.1 (#959)
* Bump matrix-js-sdk from 20.1.0 to 21.0.0

Bumps [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk) from 20.1.0 to 21.0.0.
- [Release notes](https://github.com/matrix-org/matrix-js-sdk/releases)
- [Changelog](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/matrix-org/matrix-js-sdk/compare/v20.1.0...v21.0.0)

---
updated-dependencies:
- dependency-name: matrix-js-sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump matrix-js-sdk from 20.1.0 to 21.0.1

Bumps [matrix-js-sdk](https://github.com/matrix-org/matrix-js-sdk) from 20.1.0 to 21.0.1.
- [Release notes](https://github.com/matrix-org/matrix-js-sdk/releases)
- [Changelog](https://github.com/matrix-org/matrix-js-sdk/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/matrix-org/matrix-js-sdk/compare/v20.1.0...v21.0.1)

---
updated-dependencies:
- dependency-name: matrix-js-sdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix upload content

* Change min supported node

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
2022-11-08 20:19:22 +05:30
mjarr
6a907b1542
Remove MSC3244 use from restricted room creation (#892)
* Remove MSC3244 use from restricted room creation

* Fix condition
2022-11-01 20:36:38 +05:30
Ajay Bura
91a6916f4c Release v2.2.2 2022-09-28 20:48:41 +05:30
Krishan
9185ee0cf9
Release v2.2.1 2022-09-28 19:26:12 +05:30
Ajay Bura
759f16d5b9 Fix crash on space leave 2022-09-28 18:17:15 +05:30
Ajay Bura
d0ddedc2b2 Wrap view source text 2022-09-28 13:54:58 +05:30
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
Krishan
80d9a2ca7d
Release v2.2.0 2022-09-17 19:04:13 +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
Ajay Bura
c1be57b205 Add clear cache btn in loading screen 2022-09-17 15:48:45 +05:30
morguldir
4848bef0dd
Add Clear cache and reload button (#793)
Inspired by: 3c5c2bef6d/src/components/views/elements/ErrorBoundary.tsx (L61-L68)

Signed-off-by: morguldir <morguldir@protonmail.com>

Signed-off-by: morguldir <morguldir@protonmail.com>
2022-09-17 13:21:22 +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
ginnyTheCat
b0174f3acc
Delete notifications after messages have been read or deleted (#830)
* Delete read notifications

* Delete notifications for deleted messages

* Correctly remove notification
2022-09-11 18:51:59 +05:30
ginnyTheCat
a343d9999e
Handle messages with invalid body (#833) 2022-09-11 18:51:05 +05:30
ginnyTheCat
0a2cca6e40
Change UI label (#832) 2022-09-11 16:44:39 +05:30
Ajay Bura
bca00f46a9 Add plain text command 2022-09-11 12:18:32 +05:30
Ajay Bura
5848c02d50 Remove markdown icon from input 2022-09-11 09:19:22 +05:30
Ajay Bura
29ddcfa1f9 Update command strings 2022-09-11 08:27:59 +05:30
Ajay Bura
b8a8babc88 Fix emojiboard icon background 2022-09-07 13:24:26 +05:30
Ajay Bura
4a35aa7272 Fix crash in manage device 2022-09-07 13:14:15 +05:30
Ajay Bura
2ded7d9b1f Fix crash with unknown mime type 2022-09-07 08:40:10 +05:30
Ajay Bura
19f674cf5f Fix unwanted changes 2022-09-06 14:25:13 +05:30
Ajay Bura
790bf5eac3 Fix wrong notification count 2022-09-06 14:22:56 +05:30
Ajay Bura
8583ab19f0
Manage ignored users (#814)
* Add options to display/ignore usersId's

* Update string

* Hide search icon in encrypted rooms (#763)

* Fix styles
2022-09-05 08:30:45 +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
Ajay Bura
ac155bbf4c
Fix commands (#791)
* Fix commands and added more

* Add /me & /shrug commands

* Add help command

* Fix cmd descriptions

* Add reason in command
2022-09-03 21:46:40 +05:30
Krishan
292eee33b9 Release v2.1.3 2022-08-31 21:51:50 +05:30
jameskitt616
33949dbdb1
Implement cancel replyto on escape key press (#777) 2022-08-27 08:21:41 +05:30
Ajay Bura
b3bff6b43f
Edit last message with up arrow key (#774) 2022-08-21 19:41:48 +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
Ajay Bura
76c16ce294 Fix open room from search always open same space 2022-08-21 08:51:13 +05:30
Ajay Bura
715e6648ae Fix image lightbox height 2022-08-21 08:33:47 +05:30
Ajay Bura
82fb243ffe Fix room not selecting with bad emoji data (#772) 2022-08-20 21:07:20 +05:30
Ajay Bura
7e28aa1474
Update sidebar on room/space switch (#768)
* Select last room on space/tab change (#353)

* Update sidbar on room select from search (#374)

* Select last room on space/tab change (#353)

* Update sidbar on room select from search (#374)

* Fix wrong space gets selected with some rooms

* Fix auto select room in categorized space

* Fix room remain selected on leave

* Fix leaved room appear in category & search

* Remove globally exposed vars

* Hide pin spaces from home

* Fix selecting dm always open dm tab

* Order category by AtoZ (#769)

Co-authored-by: Krishan <33421343+kfiven@users.noreply.github.com>
2022-08-20 20:51:37 +05:30
jameskitt616
1deef51df0
Add cancel edit-message on Escape Key press (#765) 2022-08-20 18:56:37 +05:30
Ajay Bura
6f7934badc
Fix more css bugs 2022-08-19 15:19:12 +05:30
Ajay Bura
2f2680be3c Fix minor css bugs 2022-08-19 13:57:24 +05:30