aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/membership.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/membership.go')
-rw-r--r--clientapi/routing/membership.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/clientapi/routing/membership.go b/clientapi/routing/membership.go
index 9030f9f7..0a56eec5 100644
--- a/clientapi/routing/membership.go
+++ b/clientapi/routing/membership.go
@@ -89,7 +89,8 @@ func SendMembership(
}
event, err := buildMembershipEvent(
- req.Context(), body, accountDB, device, membership, roomID, cfg, evTime, rsAPI, asAPI,
+ req.Context(), body, accountDB, device, membership,
+ roomID, false, cfg, evTime, rsAPI, asAPI,
)
if err == errMissingUserID {
return util.JSONResponse{
@@ -151,7 +152,7 @@ func buildMembershipEvent(
ctx context.Context,
body threepid.MembershipRequest, accountDB accounts.Database,
device *authtypes.Device,
- membership, roomID string,
+ membership, roomID string, isDirect bool,
cfg *config.Dendrite, evTime time.Time,
rsAPI roomserverAPI.RoomserverInternalAPI, asAPI appserviceAPI.AppServiceQueryAPI,
) (*gomatrixserverlib.Event, error) {
@@ -182,6 +183,7 @@ func buildMembershipEvent(
DisplayName: profile.DisplayName,
AvatarURL: profile.AvatarURL,
Reason: reason,
+ IsDirect: isDirect,
}
if err = builder.SetContent(content); err != nil {