StreamEventsToEvents converts streamEvent to Event. If device is non-nil and matches the streamevent.transactionID device then the transaction ID gets added to the unsigned section of the output event.
(device *userapi.Device, in []types.StreamEvent)
| 124 | // matches the streamevent.transactionID device then the transaction ID gets |
| 125 | // added to the unsigned section of the output event. |
| 126 | StreamEventsToEvents(device *userapi.Device, in []types.StreamEvent) []*gomatrixserverlib.HeaderedEvent |
| 127 | // SendToDeviceUpdatesForSync returns a list of send-to-device updates. It returns the |
| 128 | // relevant events within the given ranges for the supplied user ID and device ID. |
| 129 | SendToDeviceUpdatesForSync(ctx context.Context, userID, deviceID string, from, to types.StreamPosition) (pos types.StreamPosition, events []types.SendToDeviceEvent, err error) |
no outgoing calls