Skip to content

Commit 72a46cb

Browse files
authored
Stable support for MSC4115-style membership properties (#725)
* Move MSC4115 test to main CSAPI suite This is stable now. * Switch membership property to stable identifier
1 parent 8587fb3 commit 72a46cb

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tests
1+
package csapi_tests
22

33
import (
44
"github.com/matrix-org/complement/b"
@@ -10,11 +10,11 @@ import (
1010
"github.com/matrix-org/complement/helpers"
1111
)
1212

13-
// MSC4115: membership information on events
13+
// Membership information on events served to clients, as specified in MSC4115.
1414
//
15-
// Alice sends one message before bob joins, then one after. Bob reads both messages, and checks the membership state
15+
// Alice sends one message before Bob joins, then one after. Bob reads both messages, and checks the membership state
1616
// on each.
17-
func TestMSC4115(t *testing.T) {
17+
func TestMembershipOnEvents(t *testing.T) {
1818
runtime.SkipIf(t, runtime.Dendrite) // not yet implemented
1919

2020
deployment := complement.Deploy(t, 1)
@@ -52,7 +52,7 @@ func TestMSC4115(t *testing.T) {
5252
if ev.Get("type").Str == "m.room.member" && ev.Get("state_key").Str == bob.UserID {
5353
haveSeenJoin = true
5454
}
55-
membership := ev.Get("unsigned." + client.GjsonEscape("io.element.msc4115.membership")).Str
55+
membership := ev.Get("unsigned.membership").Str
5656
expectedMembership := "leave"
5757
if haveSeenJoin {
5858
expectedMembership = "join"

tests/msc4115/main_test.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)