Bruno Windels
30adefed07
return sentinels with userid if members haven't been loaded yet,
...
better than braking timeline continuation
2018-08-15 11:59:39 +02:00
Bruno Windels
20a1828fa5
make sentinels lazy loading compatible
...
dont just rely on member events, but just copy the member
2018-08-15 11:59:39 +02:00
Bruno Windels
809674ca2b
set lazily loaded members on all RoomStates of a room
...
for all timelines in all timeline sets
2018-08-15 11:59:39 +02:00
Bruno Windels
0ca3475878
make method to get mxc avatar url public
...
so MemberInfo can use it and take lazy loading into account
2018-08-15 11:59:39 +02:00
Bruno Windels
32b741e205
use more consistent naming
2018-08-15 11:59:39 +02:00
Bruno Windels
c917c4a468
return correct invite sender in case of a join
2018-08-15 11:59:39 +02:00
Bruno Windels
6c584d2b4c
keep is_direct checks inside RoomMember as events.member might not be available
2018-08-15 11:59:39 +02:00
Bruno Windels
759d415d40
preserve member state event if available when lazy loading members
2018-08-15 11:59:39 +02:00
Bruno Windels
45d86fa270
emit individual events for lazily loaded members
...
emit individual RoomState.members/newMember events
for each lazily loaded member as batch events are not a thing.
This makes updating the memberlist work
2018-08-15 11:59:39 +02:00
Bruno Windels
2c5cad71ee
prototype support for lazily loading members in matrixclient
2018-08-15 11:59:39 +02:00
Bruno Windels
2b5925b893
Support for updating members in RoomState from lazily loaded members
2018-08-15 11:59:39 +02:00
Bruno Windels
f012ada2c4
add setter on RoomMember to update from lazily loaded member
2018-08-15 11:59:07 +02:00
David Baker
f72f5b43e1
Add getVersion to Room
...
To get the version number of the room as per https://github.com/matrix-org/matrix-doc/issues/1425
2018-08-14 14:27:08 +01:00
Bruno Windels
c7e1e07262
Merge pull request #680 from matrix-org/dbkr/getsyncstatedata
...
Add getSyncStateData()
2018-08-06 10:51:21 +02:00
David Baker
89ad104423
Add getSyncStateData()
...
To get additional information about the sync state (ie. the error
object).
2018-08-03 18:00:52 +01:00
David Baker
c2f3324302
Send sync error to listener
...
We do this in other places, but not here
2018-08-03 16:59:10 +01:00
Michael Telatynski
04a969b997
Merge pull request #675 from matrix-org/bwindels/nocrashoninvalidtags
...
make sure room.tags is always a valid object to avoid crashes
2018-08-01 23:03:51 +01:00
Bruno Windels
630dfa9499
make sure room.tags is always a valid object so no crashes happen later on
2018-07-31 15:33:56 +02:00
Bruno Windels
3012501e4b
update docs to clarify state when emitting newMember
2018-07-30 14:19:45 +02:00
Bruno Windels
94bbba72f5
add member to members before emitting any events
2018-07-27 11:35:19 +02:00
Matthew Hodgson
2613690064
Merge pull request #666 from matrix-org/matthew/encrypt-for-invited-users
...
encrypt for invited users if history visibility allows.
2018-07-10 16:14:45 +01:00
David Baker
7283076bc8
Fix Users / Members mixup
2018-07-09 17:16:23 +01:00
Michael Telatynski
7f50dd205f
displayname disambiguation fixes ( #662 )
...
* fix displayname=undefined being disambiguated and strip Zero Width chars
* also strip diaritics and whitespace
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-07-06 10:42:53 +01:00
David Baker
c4fe15400c
Merge pull request #665 from matrix-org/luke/feature-expose-decryption-error-2
...
Expose event decryption error via Event.decrypted event
2018-07-05 11:02:26 +01:00
Matthew Hodgson
5ae2c26130
lint
2018-07-05 02:01:10 +02:00
Matthew Hodgson
d8d35f4022
encrypt for invited users if history visibility allows.
...
fixes https://github.com/vector-im/riot-web/issues/2713
2018-07-05 01:45:45 +02:00
Luke Barnard
fadb4d9219
Send OLM_UNKNOWN_MESSAGE_INDEX when possible
2018-07-04 15:58:45 +01:00
Luke Barnard
b63149b36a
Fix error code for Olm group message decryption
2018-07-04 14:33:02 +01:00
Luke Barnard
79f92abcfa
Add jsdoc for Event.decrypted error
2018-07-04 14:28:15 +01:00
Luke Barnard
0137fb468b
Expose event decryption error via Event.decrypted event
2018-07-04 13:56:03 +01:00
Luke Barnard
70ef8760cc
Remove spurious console.dir
2018-07-04 11:56:02 +01:00
Luke Barnard
c74d2d831b
Add decryption error codes to base.DecryptionError
...
These should roughly follow https://github.com/matrix-org/matrix-ios-sdk/blob/9732cf593206a10d2b60cd01151a759c88c1e9a2/MatrixSDK/Crypto/Algorithms/MXDecryptionResult.h#L21-L39
2018-07-04 11:54:06 +01:00
Michael Telatynski
7fe3e2f90a
invert argument to make it positive without breaking backwards compat
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-18 12:27:25 +01:00
Michael Telatynski
c0b2151929
allow omitting filename from upload entirely
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-15 18:25:20 +01:00
Michael Telatynski
5e3b1bf6b0
use Authorization header in media/v1/upload if enabled, instead of query
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-15 09:57:30 +01:00
Michael Telatynski
fdf4523c2a
export the Group model class ( #656 )
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-14 13:52:13 +01:00
David Baker
5d90dc16cc
Merge pull request #650 from matrix-org/t3chguy/audio_output
...
allow setting the output device for webrtc calls
2018-06-08 15:57:25 +01:00
David Baker
bbfc1a1cd6
Merge pull request #596 from t3chguy/t3chguy/fix-docs
...
arguments true and false are actually invalid
2018-06-08 15:21:23 +01:00
Michael Telatynski
b7208c12ac
Merge pull request #643 from matrix-org/t3chguy/content-type-bugfix
...
fix typo where `headers` was not being used and thus sent wrong content-type
2018-06-08 12:29:35 +01:00
Michael Telatynski
eaa2fdec44
Merge pull request #642 from matrix-org/t3chguy/doc_fixes
...
fix some documentation typos
2018-06-08 12:17:48 +01:00
Michael Telatynski
172044a1cb
check whether notif level is undefined, because 0 is falsey ( #651 )
...
* check whether notif level is undefined, because `0` is falsey and it failed
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* improve number check for all m.room.power_levels related stuffs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-05-29 12:11:29 +01:00
Michael Telatynski
4b203b6b63
allow setting the output device for webrtc calls
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-05-26 16:44:27 +01:00
Luke Barnard
a50dd785b8
(Breaking Change) Add erase option to deactivateAccount ( #649 )
...
For erasing messages etc. after deactivation.
**Breaking change: `deactivateAccount` no longer takes callback**
Also: Move /account/deactivate from PREFIX_UNSTABLE to _R0
2018-05-24 10:47:41 +01:00
Luke Barnard
bafbe5cbec
Emit no_consent when M_CONSENT_NOT_GIVEN received ( #647 )
2018-05-22 18:02:21 +01:00
Michael Telatynski
1bf1ce7070
fix typo where headers was not being used and thus sent wrong mime
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-04-30 06:56:43 +01:00
Michael Telatynski
7d468ee148
Replies ( #607 ) (and Content Helpers)
...
* if event has `m.relates_to` extract this into the e2e-wrapper event
* Split out helpers to make content for {HTML,text}{emote,notice,message}
So that additional content fields can be added before sending
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-04-23 14:26:40 +01:00
Michael Telatynski
260e7b529f
fix some documentation typos
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-04-15 23:31:33 +01:00
Michael Telatynski
b027089fc1
use constants
2018-04-15 22:16:25 +01:00
David Baker
5ef21c5075
Name param slightly more helpfully
2018-04-12 11:20:45 +01:00
David Baker
5c412cc0bd
Ignore inserts of dup inbound group sessions, pt 2
...
Stop the error from propagating to the txn error handler and
aborting the rest of the transaction.
2018-04-12 11:15:39 +01:00