@@ -1825,7 +1825,6 @@ function withThreadId(event: MatrixEvent, newThreadId: string): MatrixEvent {
18251825
18261826const buildEventMessageInThread = ( root : MatrixEvent ) =>
18271827 new MatrixEvent ( {
1828- age : 80098509 ,
18291828 content : {
18301829 "algorithm" : "m.megolm.v1.aes-sha2" ,
18311830 "ciphertext" : "ENCRYPTEDSTUFF" ,
@@ -1846,12 +1845,10 @@ const buildEventMessageInThread = (root: MatrixEvent) =>
18461845 sender : "@andybalaam-test1:matrix.org" ,
18471846 type : "m.room.encrypted" ,
18481847 unsigned : { age : 80098509 } ,
1849- user_id : "@andybalaam-test1:matrix.org" ,
18501848 } ) ;
18511849
18521850const buildEventPollResponseReference = ( ) =>
18531851 new MatrixEvent ( {
1854- age : 80098509 ,
18551852 content : {
18561853 "algorithm" : "m.megolm.v1.aes-sha2" ,
18571854 "ciphertext" : "ENCRYPTEDSTUFF" ,
@@ -1869,7 +1866,6 @@ const buildEventPollResponseReference = () =>
18691866 sender : "@andybalaam-test1:matrix.org" ,
18701867 type : "m.room.encrypted" ,
18711868 unsigned : { age : 80106237 } ,
1872- user_id : "@andybalaam-test1:matrix.org" ,
18731869 } ) ;
18741870
18751871const buildEventReaction = ( event : MatrixEvent ) =>
@@ -1909,7 +1905,6 @@ const buildEventRedaction = (event: MatrixEvent) =>
19091905
19101906const buildEventPollStartThreadRoot = ( ) =>
19111907 new MatrixEvent ( {
1912- age : 80108647 ,
19131908 content : {
19141909 algorithm : "m.megolm.v1.aes-sha2" ,
19151910 ciphertext : "ENCRYPTEDSTUFF" ,
@@ -1923,12 +1918,10 @@ const buildEventPollStartThreadRoot = () =>
19231918 sender : "@andybalaam-test1:matrix.org" ,
19241919 type : "m.room.encrypted" ,
19251920 unsigned : { age : 80108647 } ,
1926- user_id : "@andybalaam-test1:matrix.org" ,
19271921 } ) ;
19281922
19291923const buildEventReply = ( target : MatrixEvent ) =>
19301924 new MatrixEvent ( {
1931- age : 80098509 ,
19321925 content : {
19331926 "algorithm" : "m.megolm.v1.aes-sha2" ,
19341927 "ciphertext" : "ENCRYPTEDSTUFF" ,
@@ -1947,12 +1940,10 @@ const buildEventReply = (target: MatrixEvent) =>
19471940 sender : "@andybalaam-test1:matrix.org" ,
19481941 type : "m.room.encrypted" ,
19491942 unsigned : { age : 80098509 } ,
1950- user_id : "@andybalaam-test1:matrix.org" ,
19511943 } ) ;
19521944
19531945const buildEventRoomName = ( ) =>
19541946 new MatrixEvent ( {
1955- age : 80123249 ,
19561947 content : {
19571948 name : "1 poll, 1 vote, 1 thread" ,
19581949 } ,
@@ -1963,12 +1954,10 @@ const buildEventRoomName = () =>
19631954 state_key : "" ,
19641955 type : "m.room.name" ,
19651956 unsigned : { age : 80123249 } ,
1966- user_id : "@andybalaam-test1:matrix.org" ,
19671957 } ) ;
19681958
19691959const buildEventEncryption = ( ) =>
19701960 new MatrixEvent ( {
1971- age : 80123383 ,
19721961 content : {
19731962 algorithm : "m.megolm.v1.aes-sha2" ,
19741963 } ,
@@ -1979,12 +1968,10 @@ const buildEventEncryption = () =>
19791968 state_key : "" ,
19801969 type : "m.room.encryption" ,
19811970 unsigned : { age : 80123383 } ,
1982- user_id : "@andybalaam-test1:matrix.org" ,
19831971 } ) ;
19841972
19851973const buildEventGuestAccess = ( ) =>
19861974 new MatrixEvent ( {
1987- age : 80123473 ,
19881975 content : {
19891976 guest_access : "can_join" ,
19901977 } ,
@@ -1995,12 +1982,10 @@ const buildEventGuestAccess = () =>
19951982 state_key : "" ,
19961983 type : "m.room.guest_access" ,
19971984 unsigned : { age : 80123473 } ,
1998- user_id : "@andybalaam-test1:matrix.org" ,
19991985 } ) ;
20001986
20011987const buildEventHistoryVisibility = ( ) =>
20021988 new MatrixEvent ( {
2003- age : 80123556 ,
20041989 content : {
20051990 history_visibility : "shared" ,
20061991 } ,
@@ -2011,12 +1996,10 @@ const buildEventHistoryVisibility = () =>
20111996 state_key : "" ,
20121997 type : "m.room.history_visibility" ,
20131998 unsigned : { age : 80123556 } ,
2014- user_id : "@andybalaam-test1:matrix.org" ,
20151999 } ) ;
20162000
20172001const buildEventJoinRules = ( ) =>
20182002 new MatrixEvent ( {
2019- age : 80123696 ,
20202003 content : {
20212004 join_rule : KnownMembership . Invite ,
20222005 } ,
@@ -2027,12 +2010,10 @@ const buildEventJoinRules = () =>
20272010 state_key : "" ,
20282011 type : "m.room.join_rules" ,
20292012 unsigned : { age : 80123696 } ,
2030- user_id : "@andybalaam-test1:matrix.org" ,
20312013 } ) ;
20322014
20332015const buildEventPowerLevels = ( ) =>
20342016 new MatrixEvent ( {
2035- age : 80124105 ,
20362017 content : {
20372018 ban : 50 ,
20382019 events : {
@@ -2063,12 +2044,10 @@ const buildEventPowerLevels = () =>
20632044 state_key : "" ,
20642045 type : "m.room.power_levels" ,
20652046 unsigned : { age : 80124105 } ,
2066- user_id : "@andybalaam-test1:matrix.org" ,
20672047 } ) ;
20682048
20692049const buildEventMember = ( ) =>
20702050 new MatrixEvent ( {
2071- age : 80125279 ,
20722051 content : {
20732052 avatar_url : "mxc://matrix.org/aNtbVcFfwotudypZcHsIcPOc" ,
20742053 displayname : "andybalaam-test1" ,
@@ -2081,12 +2060,10 @@ const buildEventMember = () =>
20812060 state_key : "@andybalaam-test1:matrix.org" ,
20822061 type : "m.room.member" ,
20832062 unsigned : { age : 80125279 } ,
2084- user_id : "@andybalaam-test1:matrix.org" ,
20852063 } ) ;
20862064
20872065const buildEventCreate = ( ) =>
20882066 new MatrixEvent ( {
2089- age : 80126105 ,
20902067 content : {
20912068 room_version : "6" ,
20922069 } ,
@@ -2097,7 +2074,6 @@ const buildEventCreate = () =>
20972074 state_key : "" ,
20982075 type : "m.room.create" ,
20992076 unsigned : { age : 80126105 } ,
2100- user_id : "@andybalaam-test1:matrix.org" ,
21012077 } ) ;
21022078
21032079function assertObjectContains ( obj : Record < string , any > , expected : any ) : void {
0 commit comments