Skip to content

Commit 515fecf

Browse files
committed
merge conflict
2 parents d97c173 + 1f57072 commit 515fecf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/gmail.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ var Gmail = function(localJQuery) {
272272
return false;
273273
}
274274

275-
var items = $('.ii.gt');
275+
var items = $('.ii.gt .a3s.aXjCH');
276276
var ids = [];
277277

278278
for(var i=0; i<items.length; i++) {
@@ -302,7 +302,7 @@ var Gmail = function(localJQuery) {
302302
}
303303

304304
api.dom.email_contents = function() {
305-
var items = $('.ii.gt');
305+
var items = $('.ii.gt div.a3s.aXjCH');
306306
var ids = [];
307307

308308
for(var i=0; i<items.length; i++) {
@@ -1550,7 +1550,7 @@ var Gmail = function(localJQuery) {
15501550

15511551
api.helper.get.visible_emails_post = function(get_data) {
15521552
var emails = [];
1553-
1553+
15541554
if (!get_data) {
15551555
return emails;
15561556
}
@@ -1881,7 +1881,8 @@ var Gmail = function(localJQuery) {
18811881
}
18821882
else { // Supposing only one displayed email.
18831883
for (id in email_data.threads) {
1884-
var displayed_email_element = $('.ii.gt[class*="' + id + '"]');
1884+
var message_class_id = 'm'+id;
1885+
var displayed_email_element = $('.ii.gt .a3s.aXjCH.' + message_class_id);
18851886

18861887
if (displayed_email_element.length > 0) {
18871888
var email = email_data.threads[id];
@@ -2329,7 +2330,8 @@ var Gmail = function(localJQuery) {
23292330
api.dom.email = function(element) {
23302331
if (typeof element == 'string') {
23312332
this.id = element;
2332-
this.id_element = $('div.ii.gt.m' + this.id);
2333+
var message_class_id = 'm' + this.id;
2334+
this.id_element = $('div.ii.gt div.a3s.aXjCH.' + message_class_id);
23332335
element = this.id_element.closest('div.adn');
23342336
} else {
23352337
element = $(element);
@@ -2338,7 +2340,7 @@ var Gmail = function(localJQuery) {
23382340

23392341
// if no id specified, extract from the body wrapper class (starts with 'm' followed by the id)
23402342
if (!this.id) {
2341-
this.id_element = element.find('div.ii.gt');
2343+
this.id_element = element.find('div.ii.gt div.a3s.aXjCH');
23422344
var classValue = this.id_element.attr('class');
23432345
if (classValue != null) {
23442346
var matches = classValue.match(/(^|\s)m([\S]*)/);

0 commit comments

Comments
 (0)