diff options
author | Kegsay <kegan@matrix.org> | 2020-03-30 16:40:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 16:40:28 +0100 |
commit | 8fbe9f40782bd56561c75ac74916900c11db3654 (patch) | |
tree | c5600864699e5935dfb0df1b884920e7f296906e /clientapi | |
parent | 11a8059bba9dbdc855f10e3b380c4a2f245635a2 (diff) |
Implement typing over federation (#949)
Also fix a pet peeve of mine: not putting units on things!!!
Manually tested on p2p and works well, with some fudge factor delay.
Diffstat (limited to 'clientapi')
-rw-r--r-- | clientapi/producers/eduserver.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clientapi/producers/eduserver.go b/clientapi/producers/eduserver.go index 14414ec6..30c40fb7 100644 --- a/clientapi/producers/eduserver.go +++ b/clientapi/producers/eduserver.go @@ -20,7 +20,7 @@ import ( "github.com/matrix-org/gomatrixserverlib" ) -// EDUServerProducer produces events for the typing server to consume +// EDUServerProducer produces events for the EDU server to consume type EDUServerProducer struct { InputAPI api.EDUServerInputAPI } @@ -35,13 +35,13 @@ func NewEDUServerProducer(inputAPI api.EDUServerInputAPI) *EDUServerProducer { // SendTyping sends a typing event to EDU server func (p *EDUServerProducer) SendTyping( ctx context.Context, userID, roomID string, - typing bool, timeout int64, + typing bool, timeoutMS int64, ) error { requestData := api.InputTypingEvent{ UserID: userID, RoomID: roomID, Typing: typing, - Timeout: timeout, + TimeoutMS: timeoutMS, OriginServerTS: gomatrixserverlib.AsTimestamp(time.Now()), } |