Commit Graph

77 Commits

Author SHA1 Message Date
Gigiaj
ae9cc7a548 Fix unexpected visibility in non-room areas 2025-05-09 14:17:25 -05:00
Gigiaj
807c90e2f5 swap to using ref provider context from to connect to persistentcallcontainer more directly 2025-05-09 11:14:08 -05:00
Gigiaj
a690dbd2ca Add backupIframeRef so we can re-add the lobby screen for non-joined calls (for viewing their text channels) 2025-05-09 09:38:43 -05:00
Gigiaj
43ce6f0210 Update room to use CallView 2025-05-08 18:01:27 -05:00
Gigiaj
abe79ceb66 Add CallView 2025-05-08 17:57:57 -05:00
Gigiaj
7f8aeb335f remove logger statement and swap hash to search 2025-05-02 17:11:33 -05:00
GigiaJ
4779b09879 Always embed to give a proper call room lobby experience 2025-05-01 12:48:35 -05:00
GigiaJ
8700fe84ab Add some parameters to be settable (need to create an param object type instead of using any) in widgetUrl 2025-04-29 15:29:02 -05:00
GigiaJ
b5ca54d6fd Prevents undefined object from being checked for values and filtered against 2025-04-27 16:48:35 -05:00
GigiaJ
39d4eedb75 Disable DM calling button for now (not implemented properly yet) 2025-04-22 22:30:48 -04:00
GigiaJ
f7fb4bcc11 Remove chat open icon from DMs 2025-04-22 21:35:04 -04:00
GigiaJ
a4af96b530 Fix DM header since it *can* be a call room 2025-04-22 21:33:17 -04:00
GigiaJ
c7ea3f7e57 The code reuse is substantial enough to justify including the license 2025-04-22 21:17:19 -04:00
GigiaJ
2f980a727a The reuse is substantial enough to justify including the license 2025-04-22 21:16:36 -04:00
GigiaJ
1573353550 re-enable header buttons globally for now 2025-04-22 05:35:35 -04:00
Gigiaj
8f87690b00 Return to lobby is very useful 2025-04-18 03:01:17 -05:00
Gigiaj
589b318b08 Start laying out a toggle for roomtimeline in a call 2025-04-18 03:00:52 -05:00
Gigiaj
fd0fa3c921 clean up call references 2025-04-18 03:00:31 -05:00
Gigiaj
5a5f144e20 remove unneeded for standalone? Not even sure element-web uses the embedded atp 2025-04-17 02:36:29 -05:00
Gigiaj
cb9e4ffe86 remove unneeded comments 2025-04-17 02:26:09 -05:00
Gigiaj
8d285d45f7 revert changes on this to b4f67ce 2025-04-17 02:22:40 -05:00
Gigiaj
0106fab00b clean up to provide elementUrl option (instead of while testing just planting a string with the url) 2025-04-16 20:36:24 -05:00
Gigiaj
cc88733204 readd openid handling 2025-04-15 22:47:30 -05:00
Gigiaj
a540c86b08 remove transport testing comments
still need to fix embedded behavior (standalone works for testing rn)
2025-04-15 22:12:05 -05:00
Gigiaj
3403adeb61 add call button for DMs and try to setup for spreading across header for when in call menu (not working yet) 2025-04-15 22:09:45 -05:00
Gigiaj
f39a262eb5 remove iframe from RoomView as it isn't needed there (since you cant have persistence that way) 2025-04-15 22:08:03 -05:00
Gigiaj
b4f67ce0ec add prep for DM call button 2025-04-14 17:47:11 -05:00
Gigiaj
e2c97f81a7 remove unneeded imports 2025-04-14 09:49:53 -05:00
Gigiaj
c413396562 Add some missing imports 2025-04-14 09:49:06 -05:00
Gigiaj
8bd812b789 widget class 2025-04-14 09:44:06 -05:00
Gigiaj
9b23c757fe dummy meta class 2025-04-14 09:43:51 -05:00
Gigiaj
e1a080e50c clean up roomview removing unursed and refactoring superfluous to own files 2025-04-14 09:43:36 -05:00
Gigiaj
b59a5ac307 add a generic getKnownRooms 2025-04-14 04:30:13 -05:00
Gigiaj
93a1401b7c shift load order to enable embedded element call to work proper +
add groundwork for intercepting the read_events so we can correctly process them (not sure what is wrong but I believe there is a weird set of version mismatches between the embedded app, cinny, and the matrix widget api)
2025-04-14 04:28:08 -05:00
Gigiaj
ba75abd8dd add the remainder of element's widget driver impl (and correct where needed) 2025-04-13 16:01:05 -05:00
Gigiaj
2fa1e1a187 create a shortened version of element's widget implementation 2025-04-13 16:00:41 -05:00
Gigiaj
aa65dd57ba add scaffolding for widget-based call 2025-04-12 03:40:13 -05:00
Gigiaj
ac0ac4ff35 add small widgetdriver 2025-04-12 03:39:59 -05:00
Ajay Bura
08e975cd8e Change username color in chat with power level color (#2282)
* add active theme context

* add chroma js library

* add hook for accessible tag color

* disable reply user color - temporary

* render user color based on tag in room timeline

* remove default tag icons

* move accessible color function to plugins

* render user power color in reply

* increase username weight in timeline

* add default color for member power level tag

* show red slash in power color badge with no color

* show power level color in room input reply

* show power level username color in notifications

* show power level color in notification reply

* show power level color in message search

* render power level color in room pin menu

* add toggle for legacy username colors

* drop over saturation from member default color

* change border color of power color badge

* show legacy username color in direct rooms
2025-03-23 22:09:29 +11:00
Ajay Bura
7d54eef95b Add room notification mode switcher in room header menu (#2284) 2025-03-22 19:22:29 +11:00
Gary Wang
ea48092270 Fix press enter while composing will cause send unfinished message (#2266) 2025-03-20 20:38:08 +11:00
Ajay Bura
286983c833 New room settings, add customizable power levels and dev tools (#2222)
* WIP - add room settings dialog

* join rule setting - WIP

* show emojis & stickers in room settings - WIP

* restyle join rule switcher

* Merge branch 'dev' into new-room-settings

* add join rule hook

* open room settings from global state

* open new room settings from all places

* rearrange settings menu item

* add option for creating new image pack

* room devtools - WIP

* render room state events as list

* add option to open state event

* add option to edit state event

* refactor text area code editor into hook

* add option to send message and state event

* add cutout card component

* add hook for room account data

* display room account data - WIP

* refactor global account data editor component

* add account data editor in room

* fix font style in devtool

* show state events in compact form

* add option to delete room image pack

* add server badge component

* add member tile component

* render members in room settings

* add search in room settings member

* add option to reset member search

* add filter in room members

* fix member virtual item key

* remove color from serve badge in room members

* show room in settings

* fix loading indicator position

* power level tags in room setting - WIP

* generate fallback tag in backward compatible way

* add color picker

* add powers editor - WIP

* add props to stop adding emoji to recent usage

* add beta feature notice badge

* add types for power level tag icon

* refactor image pack rooms code to hook

* option for adding new power levels tags

* remove console log

* refactor power icon

* add option to edit power level tags

* remove power level from powers pill

* fix power level labels

* add option to delete power levels

* fix long power level name shrinks power integer

* room permissions - WIP

* add power level selector component

* add room permissions

* move user default permission setting to other group

* add power permission peek menu

* fix weigh of power switch text

* hide above for max power in permission switcher

* improve beta badge description

* render room profile in room settings

* add option to edit room profile

* make room topic input text area

* add option to enable room encryption in room settings

* add option to change message history visibility

* add option to change join rule

* add option for addresses in room settings

* close encryption dialog after enabling
2025-03-19 23:14:54 +11:00
Ajay Bura
5d00383d71 fix crash on emoji selection from emojiboard (#2249)
* fix crash on emoji select

* fix crash in message editor on emoji select
2025-03-05 13:23:28 +11:00
Ajay Bura
1206ffced2 Hide deleted events by default (#2237) 2025-03-01 18:48:11 +11:00
Ajay Bura
5fbd0c13db Hide existing messages from ignored users (#2236)
* add ignored users hook

* remove messages from timeline for ignored users
2025-02-28 18:47:23 +11:00
Ajay Bura
b7e5e0db3e Hidden Typing & Read Receipts (#2230)
* add hide activity toggle

* stop sending/receiving typing status

* send private read receipt when setting toggle is activated

* prevent showing read-receipt when feature toggle in on
2025-02-26 21:44:53 +11:00
Ajay Bura
5c94471956 Show image preview in upload window (#2231)
* memoize metadata callback properly

* add image preview on upload

* show spoiler image button inside image preview
2025-02-26 21:43:43 +11:00
Ajay Bura
ccfe30cd68 Fix editor focus after autocomplete (#2233)
* upgrade slatejs

* collapse autocomplete on escape

* make FN_KEYS_REGEX const in module scope
2025-02-26 21:42:42 +11:00
nexy7574
8d95758ed7 Remove fallback replies & implement intentional mentions (#2138)
* Remove reply fallbacks & add m.mentions

(WIP) the typing on line 301 and 303 needs fixing but apart from that this is mint

* Less jank typing

* Mention the reply author in m.mentions

* Improve typing

* Fix typing in m.mentions finder

* Correctly iterate through editor children, properly handle @room, ...

..., don't mention the reply author when the reply author is ourself, don't add own user IDs when mentioning intentionally

* Formatting

* Add intentional mentions to edited messages

* refactor reusable code and fix todo

* parse mentions from all nodes

---------

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
2025-02-23 22:08:08 +11:00
Ginger
dd4c1a94e6 Add support for spoilers on images (MSC4193) (#2212)
* Add support for MSC4193: Spoilers on Media

* Clarify variable names and wording

* Restore list atom

* Improve spoilered image UX with autoload off

* Use `aria-pressed` to indicate attachment spoiler state

* Improve spoiler button tooltip wording, keep reveal button from conflicting with load errors
2025-02-22 14:25:13 +05:30