@@ -283,9 +283,11 @@ var Gmail = function(localJQuery) {
283
283
// There are currently two selectors in use for view_thread: Bu and nH,
284
284
// Which correspond to two different ways a thread may be viewed by the user.
285
285
// There are two different code paths to determine if we are within a thread.
286
+
286
287
// This is the nH path:
287
- // this should match the sub_selector (nH -> if)
288
- var check_1 = $ ( ".nH .if" ) . children ( ":eq(1)" ) . children ( ) . children ( ":eq(1)" ) . children ( ) ;
288
+ // this should match the sub_selector (nH -> if/iY):
289
+ var check_1 = $ ( ".nH .if,.iY" ) . children ( ":eq(1)" ) . children ( ) . children ( ":eq(1)" ) . children ( ) ;
290
+
289
291
// And this is the Bu path. We don't bother here checking for the sub_selector.
290
292
var check_2 = api . get . email_ids ( ) ;
291
293
@@ -2470,7 +2472,7 @@ var Gmail = function(localJQuery) {
2470
2472
// which is triggered by the XHR request rather than nodes being inserted into the DOM (and thus returns different information)
2471
2473
"view_thread" : {
2472
2474
class : [ "Bu" , "nH" ] , // class depends if is_preview_pane - Bu for preview pane, nH for standard view
2473
- sub_selector : "div.if,div.PeIF1d " ,
2475
+ sub_selector : "div.if,div.iY " ,
2474
2476
handler : function ( match , callback ) {
2475
2477
match = new api . dom . thread ( match ) ;
2476
2478
callback ( match ) ;
@@ -4473,7 +4475,7 @@ var Gmail = function(localJQuery) {
4473
4475
}
4474
4476
4475
4477
// this should match the sub_selector
4476
- if ( ! element || ( ! element . hasClass ( "if" ) && ! element . hasClass ( "PeIF1d " ) ) ) api . tools . error ( "api.dom.thread called with invalid element/id" ) ;
4478
+ if ( ! element || ( ! element . hasClass ( "if" ) && ! element . hasClass ( "iY " ) ) ) api . tools . error ( "api.dom.thread called with invalid element/id" ) ;
4477
4479
this . $el = element ;
4478
4480
return this ;
4479
4481
} ;
0 commit comments