Skip to content

Commit

Permalink
feat(mute-conversations-toggle): add success confirmation toast
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Sep 19, 2023
1 parent f5732fd commit be225f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ public static void confirmToggleMuteConversation(Activity activity, String accou
@Override
public void onSuccess(Status result){
resultCallback.run();
Toast.makeText(activity, result.muted ? R.string.mo_muted_conversation_successfully : R.string.mo_unmuted_conversation_successfully, Toast.LENGTH_SHORT).show();
E.post(new StatusMuteChangedEvent(result));
}

Expand Down
2 changes: 2 additions & 0 deletions mastodon/src/main/res/values/strings_mo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<string name="mo_notification_management_settings">Manage Notifications</string>
<string name="mo_open_camera">Take picture</string>
<string name="mo_camera_not_available">No camera available!</string>
<string name="mo_muted_conversation_successfully">Successfully muted conversation</string>
<string name="mo_unmuted_conversation_successfully">Successfully unmuted conversation</string>
<string name="mo_muting">Muting…</string>
<string name="mo_unmuting">Unmuting…</string>
<string name="mo_mute_conversation">Mute conversation</string>
Expand Down

0 comments on commit be225f8

Please sign in to comment.