@@ -129,29 +129,25 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
129
129
// this seems to happen sometimes for reasons I don't understand
130
130
// the docs for `offsetParent` say it may be null if `display` is
131
131
// `none`, but I can't see why that would happen.
132
- logger . warn (
133
- `ReadReceiptMarker for ${ this . props . fallbackUserId } has no valid horizontalContainer` ,
134
- ) ;
132
+ logger . warn ( `ReadReceiptMarker for ${ this . props . fallbackUserId } has no valid horizontalContainer` ) ;
135
133
136
134
target . top = 0 ;
137
135
target . right = 0 ;
138
136
target . parent = null ;
139
- return ;
137
+ return target ;
140
138
}
141
139
// this is the mx_ReadReceiptsGroup
142
140
const verticalContainer = horizontalContainer . offsetParent ;
143
141
if ( ! verticalContainer || ! ( verticalContainer instanceof HTMLElement ) ) {
144
142
// this seems to happen sometimes for reasons I don't understand
145
143
// the docs for `offsetParent` say it may be null if `display` is
146
144
// `none`, but I can't see why that would happen.
147
- logger . warn (
148
- `ReadReceiptMarker for ${ this . props . fallbackUserId } has no valid verticalContainer` ,
149
- ) ;
145
+ logger . warn ( `ReadReceiptMarker for ${ this . props . fallbackUserId } has no valid verticalContainer` ) ;
150
146
151
147
target . top = 0 ;
152
148
target . right = 0 ;
153
149
target . parent = null ;
154
- return ;
150
+ return target ;
155
151
}
156
152
157
153
target . top = element . offsetTop ;
@@ -165,9 +161,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
165
161
// this seems to happen sometimes for reasons I don't understand
166
162
// the docs for `offsetParent` say it may be null if `display` is
167
163
// `none`, but I can't see why that would happen.
168
- logger . warn (
169
- `ReadReceiptMarker for ${ this . props . fallbackUserId } has no offsetParent` ,
170
- ) ;
164
+ logger . warn ( `ReadReceiptMarker for ${ this . props . fallbackUserId } has no offsetParent` ) ;
171
165
return 0 ;
172
166
}
173
167
@@ -186,7 +180,7 @@ export default class ReadReceiptMarker extends React.PureComponent<IProps, IStat
186
180
: - READ_AVATAR_SIZE ;
187
181
188
182
const startStyles = [ ] ;
189
- if ( oldInfo && oldInfo . right ) {
183
+ if ( oldInfo ? .right ) {
190
184
startStyles . push ( {
191
185
top : oldPosition - newPosition ,
192
186
right : oldInfo . right ,
0 commit comments