mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 19:57:28 +00:00
Add focus for Roar (#770)
This commit is contained in:
parent
6bd4ee9f3d
commit
9694ebce0d
@ -48,9 +48,10 @@ public class RoarMessageListener implements GlobalMessageListener {
|
||||
try {
|
||||
ChatRoom activeroom = SparkManager.getChatManager().getChatContainer().getActiveChatRoom();
|
||||
final int framestate = SparkManager.getChatManager().getChatContainer().getChatFrame().getState();
|
||||
final boolean frameisactive = SparkManager.getChatManager().getChatContainer().getChatFrame().isActive();
|
||||
|
||||
// If the message is for a chat that's currently active and showing, do not popup.
|
||||
if (activeroom.equals(room) && framestate == Frame.NORMAL) {
|
||||
if (activeroom.equals(room) && framestate == Frame.NORMAL && frameisactive) {
|
||||
Log.debug( "Surpressing popup: chat is currently active and showing.");
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user