mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 09:43:10 -06:00
Use gmsl.MPresence
This commit is contained in:
parent
a3039af449
commit
aef128a658
|
|
@ -56,7 +56,7 @@ func (p *PresenceStreamProvider) IncrementalSync(ctx context.Context, req *types
|
|||
pres := outputPresence{
|
||||
CurrentlyActive: lastActive <= time.Minute*5,
|
||||
LastActiveAgo: lastActive.Milliseconds(),
|
||||
Presence: presence.PresenceStatus.String(),
|
||||
Presence: presence.Presence.String(),
|
||||
StatusMsg: presence.StatusMsg,
|
||||
}
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ func (p *PresenceStreamProvider) IncrementalSync(ctx context.Context, req *types
|
|||
req.Log.WithError(err).Error("json.Marshal failed")
|
||||
return from
|
||||
}
|
||||
ev.Type = "m.presence"
|
||||
ev.Type = gomatrixserverlib.MPresence
|
||||
ev.Sender = presence.UserID
|
||||
ev.Content = j
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue