# HG changeset patch # User Sean Egan # Date 1032200025 0 # Node ID f3981f94494ae1e2ba79a3d32c711ee33c44c6f1 # Parent 0cf6fee378fccc890ff7bb01609be8ffafb25c60 [gaim-migrate @ 3594] Play the sounds even if we're queuing them up. This way at least we'll know you have a message waiting. committer: Tailor Script diff -r 0cf6fee378fc -r f3981f94494a src/server.c --- a/src/server.c Mon Sep 16 15:48:58 2002 +0000 +++ b/src/server.c Mon Sep 16 18:13:45 2002 +0000 @@ -688,6 +688,12 @@ /* we're not away. this is easy. if the convo window doesn't exist, create and update * it (if it does exist it was updated earlier), then play a sound indicating we've * received it and then display it. easy. */ + + if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV)) + play_sound(SND_FIRST_RECEIVE); + else if (cnv->makesound) + play_sound(SND_RECEIVE); + if (away_options & OPT_AWAY_QUEUE_UNREAD && !find_conversation(name)) { /* We're gonna queue it up and wait for the user to ask for it... probably * by clicking the docklet or windows tray icon. */ @@ -705,11 +711,7 @@ cnv = new_conversation(name); set_convo_gc(cnv, gc); } - if (new_conv && (sound_options & OPT_SOUND_FIRST_RCV)) - play_sound(SND_FIRST_RECEIVE); - else if (cnv->makesound) - play_sound(SND_RECEIVE); - + set_convo_name(cnv, name); write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime, len);