summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/SoundEventController.cpp')
-rw-r--r--Swift/Controllers/SoundEventController.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swift/Controllers/SoundEventController.cpp b/Swift/Controllers/SoundEventController.cpp
index 0351445..26847ed 100644
--- a/Swift/Controllers/SoundEventController.cpp
+++ b/Swift/Controllers/SoundEventController.cpp
@@ -28,8 +28,10 @@ SoundEventController::SoundEventController(EventController* eventController, Sou
setPlaySounds(playSounds);
}
-void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent>) {
- if (playSounds_) soundPlayer_->playSound(SoundPlayer::MessageReceived);
+void SoundEventController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent> event) {
+ if (playSounds_ && !event->getConcluded()) {
+ soundPlayer_->playSound(SoundPlayer::MessageReceived);
+ }
}
void SoundEventController::setPlaySounds(bool playSounds) {