Bruno Windels
62b3a67e33
write unit tests for correctly reading history visibility when needed
2022-07-28 17:09:41 +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
402cf17d22
Merge branch 'master' into bwindels/sharekeyswithinvitees
2022-07-27 09:17:31 +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
832b840a15
Merge remote-tracking branch 'origin' into restore_last
2022-07-26 10:06:31 +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
5fa6793958
Merge branch 'vector-im:master' into implement-join
2022-07-25 16:30:50 +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
Bruno Windels
bc385e2cdc
Merge pull request #778 from vector-im/bwindels/uidocs
...
more detailed docs for IView, TemplateView and ListView
2022-07-25 13:02:22 +00: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
fdd60a7516
Add documentation for derived themes
2022-07-25 11:38:50 +05:30
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