| 7284 | // If this is the button then select it's parent. Otherwise, select by messageId. | 7284 | // If this is the button then select it's parent. Otherwise, select by messageId. |
| 7285 | if (this?.classList?.contains('mes_edit_cancel')) { | 7285 | if (this?.classList?.contains('mes_edit_cancel')) { |
| 7286 | thisMesDiv = $(this).closest('.mes'); | 7286 | thisMesDiv = $(this).closest('.mes'); |
| 7287 | } else | 7287 | } else { |
| 7288 | { | | |
| 7289 | thisMesDiv = chatElement.children().filter(`[mesid="${messageId}"]`); | 7288 | thisMesDiv = chatElement.children().filter(`[mesid="${messageId}"]`); |
| 7290 | } | 7289 | } |
| 7291 | | 7290 | |