Bruno Windels
2d4301fe5a
WIP: expose streams, senders and receivers
2022-04-12 21:20:24 +02:00
Bruno Windels
d734a61447
Merge branch 'master' into bwindels/calls
2022-04-11 16:14:34 +02:00
Bruno Windels
57f50cc416
fix lint warnings
2022-04-08 15:01:27 +02:00
Bruno Windels
5445db2a42
allow injecting the tilesCreator from the Root/Session/RoomViewModel
...
this changes the API slightly to be more future-proof,
as we'll expose it in the SDK now.
The function now returns a SimpleTile constructor, rather than an
instance. This allows us to test if an entry would render in the
timeline without creating a tile, which is something we might want in
the matrix layer later on.
The function is now called tileClassForEntry, analogue to what we
do in TimelineView.
2022-04-08 12:52:30 +02:00
Bruno Windels
2852834ce3
persist calls so they can be quickly loaded after a restart
...
also use event prefixes compatible with Element Call/MSC
2022-04-07 10:32:43 +02:00
Bruno Windels
a0a07355d4
more improvements, make hangup work
2022-03-29 12:01:47 +02:00
Bruno Windels
0a37fd561e
just enough view code to join a call
2022-03-29 12:01:47 +02:00
Bruno Windels
07bc0a2376
move observable values each in their own file
2022-03-29 12:01:46 +02:00
Bruno Windels
ca211f929b
Merge pull request #702 from vector-im/bwindels/observablemapts
...
convert (Base)ObservableMap to typescript
2022-03-09 11:53:59 +01:00
Bruno Windels
6d7c983e8e
convert (Base)ObservableMap to typescript
2022-03-09 11:33:49 +01:00
Eric Eastwood
c09964dc30
Add data-event-id="$xxx"
attributes to timeline items for easy selecting in end-to-end tests ( #690 )
...
Split out from https://github.com/vector-im/hydrogen-web/pull/653
Example test assertions: db6d3797d7/test/e2e-tests.js (L248-L252)
```js
// Make sure the $abc event on the page has "foobarbaz" text in it
assert.match(
dom.document.querySelector(`[data-event-id="$abc"]`).outerHTML,
new RegExp(`.*foobarbaz.*`)
);
```
2022-03-01 18:36:14 -06:00
Tushar
7055f02f16
typescriptify domain/avatar.js
2022-02-25 15:52:54 +05:30
Bruno Windels
7179758c50
also here
2022-02-15 08:22:09 +01:00
Bruno Windels
1795f58ba5
rename imports
2022-02-14 17:53:59 +01:00
Bruno Windels
b0e8506cb5
ensure images load in reply preview in timeline
2022-01-17 16:48:36 +01:00
Bruno Windels
65929194b0
fix lint warnings
2022-01-14 16:23:55 +01:00
Bruno Windels
184a16a194
also define param
2022-01-14 16:23:12 +01:00
Bruno Windels
8201a85c47
ensure these have a fn for tilesCreator
2022-01-14 16:20:38 +01:00
Bruno Windels
2321228981
use this._entry here (once updated by super.updateEntry)
2022-01-14 16:20:14 +01:00
Bruno Windels
5f99c2360c
also try to create replyTile from ctor just in case update doesn't come
2022-01-14 16:12:43 +01:00
Bruno Windels
ad335d5088
pass in tilesCreator everywhere, although not needed right now
2022-01-14 16:06:29 +01:00
Bruno Windels
1ea4a347e2
encode url components
2022-01-14 15:53:17 +01:00
Bruno Windels
3c59004e72
Merge branch 'master' into threading-fallback-reply
2022-01-14 15:43:24 +01:00
Bruno Windels
17ebc8a066
Merge pull request #611 from vector-im/threading-fallback-relation
...
Threading fallback - PR 1 - Link events with their related event
2022-01-14 15:35:27 +01:00
Bruno Windels
18a76025c7
add location tile view so we don't throw when a location is shared
2022-01-14 15:27:46 +01:00
RMidhunSuresh
dac2d5e685
Pass everything down into updateEntry
2022-01-14 19:26:23 +05:30
RMidhunSuresh
0af9f10166
don't store tilesCreator
2022-01-14 19:11:40 +05:30
Bruno Windels
1f9be978b7
load image in timeline from when it is partially visible
2022-01-14 13:57:11 +01:00
RMidhunSuresh
51215fda16
Rename tileCreator -> tilesCreator
2022-01-14 18:17:49 +05:30
RMidhunSuresh
d639e169ec
Move tileCreator to BaseMessageTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e1b9b1161d
Split ifs and remove ?. abuse
2022-01-14 18:17:49 +05:30
RMidhunSuresh
846e637716
Remove stray newline
2022-01-14 18:17:49 +05:30
RMidhunSuresh
58dd25b58d
track reply-tile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
a77b9d9027
Move update logic to BaseMessageTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
951af49e04
Emit change on reply tile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
455b747a1c
Don't check param for reply
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f9f7f6cc6f
Fix test
2022-01-14 18:17:49 +05:30
RMidhunSuresh
7f91653208
Rename replyTextTile -> replyTile
2022-01-14 18:17:49 +05:30
RMidhunSuresh
af5a008d0f
Move links to vm
2022-01-14 18:17:49 +05:30
RMidhunSuresh
27a9f5dd02
Use DOMPurify to remove mx-reply
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e352867f5a
Remove unnecessary ctor
2022-01-14 18:17:49 +05:30
RMidhunSuresh
f645065db7
Remove unused getter
2022-01-14 18:17:49 +05:30
RMidhunSuresh
0c3f16e5f6
Use 's' flag with regex if available
2022-01-14 18:17:49 +05:30
RMidhunSuresh
cba044eff1
Remove comment
2022-01-14 18:17:49 +05:30
RMidhunSuresh
46b69b3873
Render error
2022-01-14 18:17:49 +05:30
RMidhunSuresh
bb45d0eae9
Render non-text messages as well
2022-01-14 18:17:49 +05:30
RMidhunSuresh
df22db256b
No need to pass tileCreator as argument
2022-01-14 18:17:49 +05:30
RMidhunSuresh
e0dc853d74
Fill matrix.to links
2022-01-14 18:17:49 +05:30
RMidhunSuresh
91912bdb8d
Create tile using tileCreator
2022-01-14 18:17:49 +05:30
RMidhunSuresh
54004eef4d
Integrate into update mechanism
2022-01-14 18:17:49 +05:30