Skip to content

Commit

Permalink
Fix showing speech bubble during global chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Sep 14, 2022
1 parent 6be6256 commit 5c0603d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions EOLib/Domain/Chat/ChatActions.cs
Expand Up @@ -94,6 +94,8 @@ public class ChatActions : IChatActions
return (chatType switch
{
ChatType.PM => ChatResult.HideSpeechBubble,
ChatType.Global => ChatResult.HideSpeechBubble,
ChatType.Admin => ChatResult.HideSpeechBubble,
ChatType.Announce => ChatResult.AdminAnnounce,
_ => ChatResult.Ok,
}, chat);
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Controllers/ChatController.cs
Expand Up @@ -67,7 +67,7 @@ public void SendChatAndClearTextBox()
});
}
break;
case ChatResult.AdminAnnounce: _sfxPlayer.PlaySfx(SoundEffectID.AdminAnnounceReceived); break;
case ChatResult.AdminAnnounce: _sfxPlayer.PlaySfx(SoundEffectID.AdminAnnounceReceived); goto case ChatResult.Ok;
case ChatResult.HideSpeechBubble: break; // no-op
case ChatResult.HideAll: break; // no-op
}
Expand Down

0 comments on commit 5c0603d

Please sign in to comment.