fixed dummy user id

Signed-off-by: Aleksandr Dubovikov <d.lexand@gmail.com>
This commit is contained in:
ad 2024-09-30 13:03:26 +02:00 committed by Aleksandr Dubovikov
parent 6c8158b313
commit 625bc3d02d

View file

@ -303,10 +303,7 @@ func downloadAndStoreImage(
var width, height int var width, height int
userid := types.MatrixUserID("user") userid := types.MatrixUserID(dev.UserID)
if dev != nil {
userid = types.MatrixUserID(dev.UserID)
}
reqReader := req.Body.(io.Reader) reqReader := req.Body.(io.Reader)
if cfg.MaxFileSizeBytes > 0 { if cfg.MaxFileSizeBytes > 0 {