Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 918efe5

Browse files
t3chguydbkr
authored andcommitted
width and height must be int otherwise synapse cries
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 431b482 commit 918efe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/messages/RoomAvatarEvent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ module.exports = React.createClass({
6262
var url = ContentRepo.getHttpUriForMxc(
6363
MatrixClientPeg.get().getHomeserverUrl(),
6464
ev.getContent().url,
65-
14 * window.devicePixelRatio,
66-
14 * window.devicePixelRatio,
65+
Math.ceil(14 * window.devicePixelRatio),
66+
Math.ceil(14 * window.devicePixelRatio),
6767
'crop'
6868
);
6969

0 commit comments

Comments
 (0)