Commit graph

631 commits

Author SHA1 Message Date
Ajay Bura
ca3389a4eb Merge branch 'dev' into js-sdk-v34 2025-01-17 09:31:02 +05:30
Jan Jurzitza
e0e84f3756
Center image in URL preview card (#1556)
center is more likely to have relevant content than top left
2025-01-10 15:12:05 +05:30
nexy7574
02437a6a20
Render captions to m.file, m.image, m.video, and m.audio (#2059)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
* Add rendering image captions

* Handle sending captions for images

* Fix caption rendering on m.video and m.audio too

* Remove unused renderBody() parameter

* Fix m.file rendering body instead of filename where possible

* Add caption rendering for generic files

+ Fix video and audio not properly sending captions

* Use m.text for captions & render on demand

* Allow custom HTML in sending captions

* Don't *send* captions

* mvoe content const into renderCaption()

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
2025-01-06 12:44:22 +11:00
Marek Vospel
b8d9c4bdd6
Emoji ordering in emoji board (#2057)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
* feat: sort emojis inside emoji picker

* feat: sort autocomplete emojis

Fixes #1632

* fix: sort function after concat

* fix: sort result instead of searchList
2024-12-22 16:11:02 +05:30
Ajay Bura
35f0e400ad
Pinned Messages (#2081)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
* add pinned room events hook

* room pinned message - WIP

* add room event hook

* fetch pinned messages before displaying

* use react-query in room event hook

* disable staleTime and gc to 1 hour in room event hook

* use room event hook in reply component

* render pinned messages

* add option to pin/unpin messages

* remove message base from message placeholders and add variant

* display message placeholder while loading pinned messages

* render pinned event error

* show no pinned message placeholder

* fix message placeholder flickering
2024-12-16 16:25:15 +05:30
Rein Fernhout
00d5553bcb
add tableflip and unflip commands (#2075)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
2024-12-13 10:02:25 +05:30
Krishan
a142630ff9
Release v4.2.3 (#2052)
Some checks failed
Deploy to Netlify (dev) / Deploy to Netlify (push) Has been cancelled
2024-11-12 20:45:34 +11:00
Krishan
c110e64341
Release v4.2.2 (#2012) 2024-10-16 21:29:30 +11:00
Krishan
6e191d3c79
Fix matrix.to links opening in webview in cinny desktop (#1963) 2024-09-22 10:08:55 +05:30
Ajay Bura
fe4d0be610 Merge branch 'dev' into js-sdk-v34 2024-09-20 21:39:39 +05:30
Krishan
21164a9b61
Release v4.2.1 (#1953) 2024-09-14 23:24:34 +10:00
Krishan
4923b17ad6
Fix auth media check for dendrite (#1952) 2024-09-14 18:54:06 +05:30
Krishan
c75e903619
Release v4.2.0 (#1949) 2024-09-11 19:26:08 +05:30
Ajay Bura
03cc25eec0
Fix authenticated media download (#1947)
* remove dead function

* fix media download in room timeline

* authenticate remaining media endpoints
2024-09-11 17:07:02 +10:00
夜坂雅
f2c31d29a2
fix: Fix video and audio loading with authenicated media (#1946)
Appeareantly Firefox (and maybe Chrome) won't let service workers take over requests from <video> and <audio> tags, so we just fetch the URL ourselves.
2024-09-11 10:43:15 +05:30
Ajay Bura
5482f8e72e
render matrix room and event link content (#1938) 2024-09-09 20:51:52 +10:00
Ajay Bura
96df140153
Improve-auth-media (#1933)
* fix set power level broken after sdk update

* add media authentication hook

* fix service worker types

* fix service worker not working in dev mode

* fix env mode check when registering sw
2024-09-09 14:15:20 +05:30
Ajay Bura
4dfce32730
fix mention url is encoded wrong (#1936) 2024-09-08 22:53:59 +10:00
Ajay Bura
388f606ad2
fix escape to mark as read (#1935) 2024-09-08 22:53:17 +10:00
Ajay Bura
09444f9e08
fix sso login without identity providers (#1934) 2024-09-08 22:51:43 +10:00
夜坂雅
c6a8fb1117
Add authenticated media support (#1930)
* chore: Bump matrix-js-sdk to 34.4.0

* feat: Authenticated media support

* chore: Use Vite PWA for service worker support

* fix: Fix Vite PWA SW entry point

Forget this. :P

* fix: Also add Nginx rewrite for sw.js

* fix: Correct Nginx rewrite

* fix: Add Netlify redirect for sw.js

Otherwise the generic SPA rewrite to index.html would take effect, breaking Service Worker.

* fix: Account for subpath when regisering service worker

* chore: Correct types
2024-09-07 19:15:55 +05:30
Dylan Hackworth
043012e809
pressing up to edit should take you to end of line (#1928) 2024-09-07 18:38:16 +05:30
Ajay Bura
6835b12c13 fix deprecated import/export room keys func 2024-09-02 16:20:04 +05:30
Ajay Bura
56840ad00a fix deprecated room.currentState uses 2024-09-02 16:15:57 +05:30
Ajay Bura
b8f02f5729 fix deprecated isRoomEncrypted method uses 2024-09-02 16:02:27 +05:30
Ajay Bura
0ca778caaf Merge branch 'dev' into js-sdk-v34 2024-09-02 15:32:23 +05:30
Ajay Bura
b36a2a1c43 fix types 2024-09-02 15:20:32 +05:30
Ajay Bura
2feb4feee2 remove dead code 2024-08-17 08:56:33 +05:30
greentore
830d05e217
Add basic m.thread support (#1349)
* Add basic `m.thread` support

* Fix types

* Update to v4

* Fix auto formatting mess

* Add threaded reply indicators

* Fix reply overflow

* Fix replying to edited threaded replies

* Add thread indicator to room input

* Fix editing encrypted events

* Use `toRem` function for converting units

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
2024-08-15 20:22:32 +05:30
aceArt-GmbH
ac1797344c
Add translation support using i18next (#1576)
Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
2024-08-14 18:59:34 +05:30
Krishan
e68c56b334
Release v4.1.0 (#1867) 2024-08-04 20:15:10 +10:00
Ajay Bura
cabfdd47b5
fix type to focus not working after room switch (#1866) 2024-08-04 16:04:11 +10:00
Ajay Bura
581211f13e
fix crash when decoding malformed urls (#1865) 2024-08-04 15:38:20 +10:00
Ajay Bura
8ed78d48fb
fix notification not working for selected room (#1864) 2024-08-04 15:37:28 +10:00
Ajay Bura
96222de5bc
fix page up/down button not working (#1863) 2024-08-04 15:36:42 +10:00
Ajay Bura
681287c46a
show unverified tab indicator on sidebar (#1862) 2024-08-04 14:19:37 +10:00
Ajay Bura
9cb5c70d51
add back btn for mobile view (#1861) 2024-08-03 23:47:53 +10:00
Ajay Bura
e54bb2e423
fix tombstone replacement room open previous room (#1856) 2024-07-30 22:19:51 +10:00
Ajay Bura
5058136737
support matrix.to links (#1849)
* support room via server params and eventId

* change copy link to matrix.to links

* display matrix.to links in messages as pill and stop generating url previews for them

* improve editor mention to include viaServers and eventId

* fix mention custom attributes

* always try to open room in current space

* jump to latest remove target eventId from url

* add create direct search options to open/create dm with url
2024-07-30 22:18:59 +10:00
Ajay Bura
74dc76e22e
fix room opens at home after leave rejoin (#1848) 2024-07-28 23:40:21 +10:00
Krishan
44161c4157
Release v4.0.3 (#1840) 2024-07-25 15:54:58 +10:00
Krishan
96415a8d2a
Release v4.0.0 (#1836)
* Release v4.0.0

* add more rooms in featured
2024-07-24 18:30:49 +05:30
Ajay Bura
b387370aaf
Add setting for page zoom (#1835)
* add setting for page zoom

* parse integer in zoom change listener

* fix zoom input width

* fix null gets saved as page zoom
2024-07-23 23:52:53 +10:00
Ajay Bura
a32c8bf228
Load room member even when member drawer is closed (#1825) 2024-07-23 15:15:17 +10:00
Ajay Bura
e6d6b0349e
Fix unread reset and notification settings (#1824)
* reset unread with client sync state change

* fix notification toggle setting not working

* revert formatOnSave vscode setting
2024-07-23 15:14:32 +10:00
Ajay Bura
e2228a18c1
handle error in loading screen (#1823)
* handle client boot error in loading screen

* use sync state hook in client root

* add loading screen options

* removed extra condition in loading finish

* add sync connection status bar
2024-07-22 20:47:19 +10:00
Ajay Bura
c243b6104c
Update color theme to match with new design (#1821)
* update silver theme

* update unread badge style to look more slim

* update nav item style to look less sharp

* fix type focus message input typo

* decrease navigation drawer width to bring main chat layout to little more center

* increase sidebar width to make it less congested

* fix sidebar item style

* decrease dark theme contrast

* improve dark theme

* revert sidebar width change

* add join with address option in home context menu

* match legacy theme with latest themes
2024-07-21 15:43:33 +10:00
Ajay Bura
a1a822c5b6
Fix selecting tombstone room opens replacement room (#1820) 2024-07-18 23:20:51 +10:00
Ajay Bura
c4abe39375
Make hotkeys work again (#1819) 2024-07-18 23:20:20 +10:00
Ajay Bura
c52c4f7d32
fix crash when adding existing room to space (#1806) 2024-07-15 00:21:19 +10:00