mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Scope media pausing to the open conversation
// FREEBIE
This commit is contained in:
@@ -39,11 +39,8 @@
|
||||
className: 'conversation-stack',
|
||||
open: function(conversation) {
|
||||
var id = 'conversation-' + conversation.cid;
|
||||
if(id !== this.el.firstChild.id) {
|
||||
this.$("video").each(function() {
|
||||
this.pause();
|
||||
});
|
||||
this.$("audio").each(function() {
|
||||
if (id !== this.el.firstChild.id) {
|
||||
this.$el.first().find('video, audio').each(function() {
|
||||
this.pause();
|
||||
});
|
||||
var $el = this.$('#'+id);
|
||||
|
||||
Reference in New Issue
Block a user