From 9a97a68ff3a64f09dbc34e73713cecff20a2a1e4 Mon Sep 17 00:00:00 2001 From: SUMUKHA-PK Date: Wed, 1 May 2019 18:40:18 +0530 Subject: [PATCH] Content returned rather than the event (progress) --- .../matrix-org/dendrite/clientapi/routing/room_tagging.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/room_tagging.go b/src/github.com/matrix-org/dendrite/clientapi/routing/room_tagging.go index 87484bb41..8d8d557db 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/room_tagging.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/room_tagging.go @@ -163,20 +163,20 @@ func obtainSavedTags( userID string, roomID string, accountDB *accounts.Database, -) (string, []gomatrixserverlib.ClientEvent, error) { +) (string, gomatrixserverlib.RawJSON, error) { localpart, _, err := gomatrixserverlib.SplitID('@', userID) if err != nil { - return "", []gomatrixserverlib.ClientEvent{}, err + return "",gomatrixserverlib.RawJSON{}, err } data, err := accountDB.GetAccountDataByType( req.Context(), localpart, roomID, "tag", ) if err != nil { - return "", []gomatrixserverlib.ClientEvent{}, err + return "", gomatrixserverlib.RawJSON{}, err } - return localpart, data, nil + return localpart, data.Content, nil } // addDataToDB is a utility function to save the tag data into the DB