RMidhunSuresh
6335da0932
Throw error from outside log method
...
This will show the error in the UI
2022-08-15 22:52:02 +05:30
RMidhunSuresh
7590c55404
Log error when loading css file fails
2022-08-15 22:28:40 +05:30
RMidhunSuresh
2e12ce74b7
Show parse errors in the UI as well
2022-08-15 17:23:27 +05:30
RMidhunSuresh
8e2838264f
Run binding when isLoading changes
2022-08-15 15:00:31 +05:30
Isaiah Becker-Mayer
c1161e5332
typescript-ifying CompleteSSOLoginViewModel
2022-08-14 11:27:25 -07:00
Isaiah Becker-Mayer
53c4ecb69b
typescript-ifying StartSSOLoginViewModel
2022-08-14 11:14:54 -07:00
Isaiah Becker-Mayer
749e038a47
typescript-ifying PasswordLoginViewModel
2022-08-14 11:05:13 -07:00
RMidhunSuresh
4a62cdb8fb
Await the promise
2022-08-14 17:52:19 +05:30
RMidhunSuresh
d1c7a792b8
Await in fill method to prevent multiple errors
2022-08-14 17:43:24 +05:30
RMidhunSuresh
27363b3f63
Throw and log errors if manifests cannot be loaded
2022-08-10 22:25:56 +05:30
RMidhunSuresh
ff706e542d
Throw ConnectionError instead of swallowing error
2022-08-10 22:23:51 +05:30
RMidhunSuresh
bfd54f2764
Delete localstorage on logout
2022-08-09 23:11:02 +05:30
Isaiah Becker-Mayer
dd01e70b4a
src/observable/map/BaseObservableMapDefaults.ts -> src/observable/map/BaseObservableMapTransformers.ts
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
70b68c5b16
found a more clever way to do this which eliminates boilerplate
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
73b83fdab8
Changes config from a function that returns an objectinto a more aptly named BaseObservableMapDefaults class
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
bed66ada88
removes .js to files that are now typescripted
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
0203ece3bd
updates ts-eslint and fixes errors in src/observable
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
deab8bdaf0
moves boilerplate to bottom of classes
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
be570cafb0
Adds types for common functions
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
674e7bd1c6
fixing linting errors
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
081cc05fa6
Updates comparator
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
ab6a8ad3aa
typescriptifying ApplyMap
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
95c65280ef
typescriptifying MappedMap
2022-08-07 21:13:00 -07:00
Isaiah Becker-Mayer
d060d337b6
typescriptifies LogMap
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
edeec896ae
typescriptifies SourceSubscriptionHandler
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
63e9b49ebe
uncommenting tests
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
3ba2bab59f
JoinedMap to typescript
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
f1751a24b0
FilteredMap
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
7645eb8753
moves config into its own file
2022-08-07 21:12:59 -07:00
Isaiah Becker-Mayer
b33db1df36
refactors ObservableMap
2022-08-07 21:12:59 -07:00
RMidhunSuresh
d01a95aae3
UI improvements
2022-08-04 16:37:28 +05:30
RMidhunSuresh
b1fd5f1ad5
Do not fill gap when offline
2022-08-04 16:33:59 +05:30
RMidhunSuresh
236a4ab49b
Ignore error
2022-08-01 17:01:36 +05:30
RMidhunSuresh
ba8cdea6b4
Use default import if other not found
2022-08-01 17:01:36 +05:30
RMidhunSuresh
ef9f90bc36
Fix imports breaking on dev
2022-08-01 17:01:36 +05:30
Kaki In
f812519187
Merge branch 'vector-im:master' into recalculate_dm
2022-07-29 16:29:02 +02:00
Bruno Windels
041e628520
Merge pull request #769 from vector-im/implement-derived-theme
...
Support for derived themes
2022-07-29 14:25:05 +00:00
Bruno Windels
4838e19c92
Merge pull request #811 from vector-im/bwindels/sharekeyswithinvitees
...
Key sharing based on room history visibility
2022-07-29 14:23:26 +00:00
Bruno Windels
cb0ac846c7
remove obsolete comment
2022-07-29 16:22:01 +02:00
Bruno Windels
fdefea5b88
Merge branch 'master' into ts-conversion-domain-navigation
2022-07-29 16:18:22 +02:00
Kaki In
808cbd8873
Merge branch 'vector-im:master' into recalculate_dm
2022-07-29 12:41:48 +02:00
Bruno Windels
b6f795505d
fix lint
2022-07-29 12:21:16 +02:00
Kaki In
c7698b6071
Merge branch 'vector-im:master' into recalculate_dm
2022-07-29 12:19:48 +02:00
Kaki In
69871ab985
Merge branch 'vector-im:master' into recalculate_dm
2022-07-29 12:08:33 +02:00
Kaki In
09bc77073b
Merge branch 'vector-im:master' into restore_last
2022-07-29 12:06:49 +02:00
Bruno Windels
4a2e14925a
Merge pull request #812 from vector-im/doc-config
...
[Documentation] - Add type for config options
2022-07-29 10:05:27 +00:00
Bruno Windels
224ab2672a
Merge pull request #809 from Kaki-In/implement-join
...
Implemented /join
2022-07-29 10:03:18 +00:00
Bruno Windels
170460f5a9
add link to sygnal webpush docs as well
2022-07-29 12:02:09 +02:00
Bruno Windels
2a5e0302dc
Merge pull request #785 from vector-im/hs/log-when-storage-access-fails
...
Log the error when we can't get storage access
2022-07-29 09:47:58 +00:00
Kaki In
f512bfcfc1
Pretty syntaxed the RoomViewModel
2022-07-29 11:47:47 +02:00
Half-Shot
5b5c852401
Revert "use logging items"
...
This reverts commit d937b9b14b
.
2022-07-29 10:44:37 +01:00
Kaki In
58a2d1f34c
Restored the common.js indentation
2022-07-29 11:44:23 +02:00
Half-Shot
d937b9b14b
use logging items
2022-07-29 10:39:41 +01:00
Bruno Windels
d3e93196e3
Merge pull request #777 from ibeckermayer/ibeckermayer/ts-conversion-loginviewmodel
...
TS conversion for `LoginViewModel`
2022-07-29 09:27:10 +00:00
Bruno Windels
62b3a67e33
write unit tests for correctly reading history visibility when needed
2022-07-28 17:09:41 +02:00
Kaki In
b73e3e9883
Don't add a memeber to the members list if it left the DM
2022-07-28 13:06:47 +02:00
Bruno Windels
319ec37864
fix typos preventing to load the history visibility
2022-07-28 11:44:50 +02:00
Kaki In
f5dacb4e42
Fixed last check
2022-07-28 10:26:59 +02:00
Kaki In
302131c447
Review last checks
2022-07-28 10:14:21 +02:00
Kaki In
fb79326747
Forgot one change
2022-07-28 09:26:08 +02:00
Kaki In
3c64f7d49b
Finals checks about https://github.com/vector-im/hydrogen-web/pull/809#pullrequestreview-1053501341
...
- joined the processJoinRoom and joinRoom methods;
- fixed some precisions miss;
- removed some useless code;
- change the error message height from absolute (40px) to relative (auto)
2022-07-28 09:23:30 +02:00
Isaiah Becker-Mayer
a82df95b82
marking private methods as such
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
cadca70946
fixes linter errors and removes some unneeded async/await
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
8b91d8fac8
adds newline
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
a5b9cb6b95
removes unnecessary awaits
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
aeed978789
changes signature of emitChange to require changedProps
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
7b7b19476c
updates some signatures to be more verbose, fixes wrong type for attemptLogin
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
ad0bd82bda
creating default exports
2022-07-27 22:09:30 -07:00
Isaiah Becker-Mayer
d7657dcc4d
first draft of fully typescriptified LoginViewModel.ts
2022-07-27 22:09:30 -07:00
Kaki In
176caf340f
Placed the join command outside of the processCommand method
2022-07-27 16:42:44 +02:00
Kaki In
a40bb59dc0
Some fixes :
...
- fixed a pretty syntax miss (a !== b);
- fixed a type error : replaced "msgtype" by "type" when instantied the "messinfo" variable;
- some indentation fixes
2022-07-27 16:36:58 +02:00
Kaki In
ab64ce02b2
Separated the _processCommand and the joinRoom command
...
- renamed executeJoinCommand as joinRoom;
- separated the joinRoom process and the parse and result process
2022-07-27 15:18:32 +02:00
Kaki In
2d3b6fe973
Canceled indentation modification.
2022-07-27 12:40:19 +02:00
Kaki In
550b9db4dc
Separated the join instructions into a executeJoinCommand method
2022-07-27 12:21:00 +02:00
Bruno Windels
0df66b5aea
track room before listing user ids when sharing key
2022-07-27 12:06:55 +02:00
Bruno Windels
f18520a2fe
let loadMembers use own txn in case members haven't been fetched yet
...
if they haven't, it will need a network request, meaning that the txn
will get closed, so we can't reuse it afterwards
2022-07-27 11:39:50 +02:00
Bruno Windels
50b6ee91d7
don't need history visibility here
2022-07-27 11:39:36 +02:00
Kaki In
9b0ab0c8f1
Used "null" instead of "undefined"
...
When creating the this._lastSessionHash attribute of History
2022-07-27 09:19:36 +02:00
Bruno Windels
bfaba63f47
fix ts error
2022-07-26 17:55:21 +02:00
Bruno Windels
544afef902
test adding and removing when tracking multiple rooms
2022-07-26 17:41:26 +02:00
Bruno Windels
dd878bb8d6
also take rejecting invites into account to remove user identity
2022-07-26 16:58:07 +02:00
Bruno Windels
dea3852425
add some tests for sharing keys with invitees
2022-07-26 16:57:28 +02:00
Bruno Windels
4c17612b05
allow passing txn to loadMembers so we can do it as part of sync txn
...
to rewrite useridentities upon receiving new history visibility
2022-07-26 16:53:02 +02:00
Kaki In
f9f49b7640
Fixed an error and improving css
...
If the /join command success, an error was thrown, because of a copy-pasted command not well integrated
The button of the error on "theme.css" contains now an unicode cross. The :after/:before cross was disformed when opening the room informations.
2022-07-26 14:48:03 +02:00
Kaki In
0718f1e77e
Fixed the https://github.com/vector-im/hydrogen-web/pull/816#discussion_r929692693 comment
...
Added the _lastSessionHash attribute inside the History constructor
2022-07-26 11:11:16 +02:00
Kaki In
09fd1a5113
Use "args.join" instead of "message.substring"
...
into RoomViewModel._processCommands
2022-07-26 10:37:05 +02:00
Kaki In
adfecf0778
Fix restoring the last url at start
...
The last session url is now remembered for being restored at the beginning of the session. Thanks for the help of @bwindels
2022-07-26 10:02:20 +02:00
Kaki In
1e5179f835
- Application des différents commentaires du Pull Request ( #809 )
...
- Correction des erreurs d'indentations.
2022-07-25 15:22:06 +02:00
Kaki In
0bf021ea87
The room is now joined after having actualised the rooms list, to avoid the synchronisations waits that can sometimes disable to enter the room (message "You're not into this room" or simply "You're not in this room yet. *Join the room*")
2022-07-25 13:37:03 +02:00
RMidhunSuresh
63bdbee39c
Make optional fields optional
2022-07-25 11:33:22 +05:30
RMidhunSuresh
8a976861fb
Add type
2022-07-25 11:31:14 +05:30
Bruno Windels
a23df8a545
pass history visibility to device tracker
...
and delegate adding and removing members to share keys with to it
2022-07-22 17:49:59 +02:00
Bruno Windels
17f42f523a
add write method for when history visibility changes
...
also returning added and removed user ids
2022-07-22 17:49:26 +02:00
Bruno Windels
f6011f3f34
take history visibility into account in device tracker
...
and return added and removed userids to their userIdentity for the given
room, so room encryption can share and discard the keys for them
2022-07-22 17:48:26 +02:00
Bruno Windels
86c0e9e669
logic for whether a key should be shared by membership and h. visibility
2022-07-22 17:46:53 +02:00
Bruno Windels
f337940202
this migration shouldn't be needed anymore
...
and undoes the export of addRoomToIdentity, which is somewhat internal
2022-07-22 17:46:29 +02:00
Kaki In
b7fd22c7f9
SyntaxError fixed
2022-07-22 17:10:29 +02:00
Kaki In
66a59e6f4d
Error of interpretation of the 403 status at the last update. Fixed
2022-07-22 17:09:43 +02:00
Kaki In
e345d0b33e
Added the 403 status when joining an unknown room
2022-07-22 17:06:09 +02:00
Kaki In
be8962cec2
Fixed priority operations when checking request status
2022-07-22 16:59:48 +02:00
Kaki In
8b39346409
The error message can now be closed
2022-07-22 16:34:52 +02:00
Kaki In
fb58d9c9ef
Corrected some syntax dismiss
2022-07-22 16:08:53 +02:00
Bruno Windels
22831e710c
support async callback in iterateResponseStateEvents
2022-07-22 14:15:26 +02:00
Kaki In
faa8cae532
Added the possibility to join a room using /join (also added the global commands uses, and some others commands like /shrug .)
2022-07-21 13:55:23 +02:00
Bruno Windels
c8a8eb10b5
get user ids for sharing a new key when the message is sent
...
rather than when the key happens to get sent
2022-07-20 15:21:33 +02:00
Bruno Windels
d79e5f7806
create key share operations for invitees when history visibility=invited
2022-07-20 15:20:23 +02:00
RMidhunSuresh
1456e308a8
Add type and fix formatting
2022-07-20 15:36:02 +05:30
RMidhunSuresh
313e65e00c
Write tests
2022-07-20 12:30:41 +05:30
RMidhunSuresh
8aa96e8031
Update log label
2022-07-19 21:19:22 +05:30
RMidhunSuresh
7ac2c7c7fa
Get tests to work
2022-07-19 21:06:55 +05:30
RMidhunSuresh
ecb3a66dfc
WIP
2022-07-19 17:56:08 +05:30
RMidhunSuresh
e1ee258630
Change path
2022-07-19 17:56:08 +05:30
RMidhunSuresh
83b5d3b68e
Change directory name
2022-07-19 17:56:08 +05:30
RMidhunSuresh
7a1591e0ce
Move code
2022-07-19 17:56:08 +05:30
RMidhunSuresh
07db5450b7
Aliases can also be derived
2022-07-19 17:56:08 +05:30
RMidhunSuresh
081de5afa8
.js --> .mjs
2022-07-19 17:56:08 +05:30
RMidhunSuresh
dece42dce3
Do not store all the manifests in memory
2022-07-19 17:56:08 +05:30
RMidhunSuresh
b29287c47e
await in loop --> Promise.all()
2022-07-19 17:56:08 +05:30
RMidhunSuresh
9bdf9c500b
Add return types
2022-07-19 17:56:08 +05:30
RMidhunSuresh
9e2d355573
Add logging
2022-07-19 17:56:08 +05:30
RMidhunSuresh
ce5db47708
Support using derived theme as default theme
2022-07-19 17:56:08 +05:30
RMidhunSuresh
da0a918c18
This code should only run once
2022-07-19 17:56:08 +05:30
RMidhunSuresh
043cc9f12c
Use ThemeManifest type
2022-07-19 17:56:08 +05:30
RMidhunSuresh
80fb953688
Don't fail on erros; expect the code to throw!
2022-07-19 17:56:08 +05:30
RMidhunSuresh
f15e23762a
Add more missing keys to type
2022-07-19 17:56:08 +05:30
RMidhunSuresh
f440457875
Use ThemeManifest type where possible
2022-07-19 17:56:08 +05:30
RMidhunSuresh
a8cab98666
Add mroe missing types
2022-07-19 17:56:08 +05:30
RMidhunSuresh
ac7be0c7a1
WIP
2022-07-19 17:56:08 +05:30
RMidhunSuresh
d731eab51c
Support fetching text
2022-07-19 17:56:08 +05:30
RMidhunSuresh
161e29b36e
Use existing code
2022-07-19 17:56:08 +05:30
RMidhunSuresh
2947f9f6ff
Remove console.log
2022-07-19 17:56:08 +05:30
RMidhunSuresh
8c02541b69
WIP - 1
2022-07-19 17:56:08 +05:30
R Midhun Suresh
c9bca52e82
Merge pull request #760 from vector-im/refactor-rollup-plugin
...
Refactor theme builder plugin
2022-07-11 16:54:18 +05:30
RMidhunSuresh
6718198d9c
Continue with other items if this throws
2022-07-11 12:40:24 +05:30
RMidhunSuresh
f073f40e31
Fix error
2022-07-07 18:16:33 +05:30
R Midhun Suresh
963324c767
Merge pull request #789 from vector-im/support-pl-room-creation
...
Support power_level_content_override option on room creation
2022-07-07 17:42:19 +05:30
RMidhunSuresh
0bdbb96036
Use same kind
2022-07-07 17:26:43 +05:30
RMidhunSuresh
d292e1f5ad
Extract into function
2022-07-07 17:23:23 +05:30
RMidhunSuresh
cd9e00b847
Support power_level_content_override
2022-07-07 17:17:05 +05:30
RMidhunSuresh
3941b7e3f0
Rename method
2022-07-07 16:45:18 +05:30
RMidhunSuresh
efd9f70e92
WIP
2022-07-07 16:39:45 +05:30
Isaiah Becker-Mayer
204948db64
changing filename to ts
2022-07-06 21:06:36 -04:00
Will Hunt
a85d2c96d6
Log the error when we can't get storage access
...
This is quite useful when debugging why a session isn't working properly.
2022-07-06 10:06:00 +01:00
RMidhunSuresh
8ec0bd7295
Check if lightbox url is available
2022-07-05 17:55:51 +05:30
Bruno Windels
ff2129f36a
Merge pull request #773 from vector-im/madlittlemods/consistent-test-selector
...
Add a couple consistent selectors to reference in tests
2022-07-04 14:19:09 +00:00
Bruno Windels
34ce8a8e3c
fix lint
2022-07-04 16:15:59 +02:00
R Midhun Suresh
a68f0bba39
Merge pull request #752 from vector-im/theme-document-manifest
...
Create a type for theme-manifest
2022-07-04 17:11:08 +05:30
Eric Eastwood
c59f65e43b
Add a couple consistent selectors to reference in tests
...
Using `data-testid` because it seems generic out of the list from:
- https://docs.cypress.io/guides/core-concepts/cypress-app#Uniqueness
- https://docs.cypress.io/guides/references/best-practices#How-It-Works
2022-06-29 12:56:20 +02:00
Bruno Windels
ad8ad22cc1
Merge pull request #767 from vector-im/bwindels/download-media
...
Menu option to download attached image or video of event
2022-06-25 18:21:17 +00:00
Bruno Windels
3369bda2f0
offer menu options to download media
...
also always show status (before sendStatus), not just when isPending
as we are recycling it to show download status as well
2022-06-25 20:15:33 +02:00