mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Check that UserID matches too
This commit is contained in:
parent
6cf9fe9466
commit
a5f130c670
1 changed files with 1 additions and 1 deletions
|
@ -624,7 +624,7 @@ func streamEventsToEvents(device *authtypes.Device, in []streamEvent) []gomatrix
|
|||
for i := 0; i < len(in); i++ {
|
||||
out[i] = in[i].Event
|
||||
if device != nil && in[i].transactionID != nil {
|
||||
if device.ID == in[i].transactionID.DeviceID {
|
||||
if device.UserID == in[i].Sender() && device.ID == in[i].transactionID.DeviceID {
|
||||
// TODO: Don't clobber unsigned
|
||||
ev, err := out[i].SetUnsigned(map[string]string{
|
||||
"transaction_id": in[i].transactionID.TransactionID,
|
||||
|
|
Loading…
Reference in a new issue