Skip to content

Commit

Permalink
Show pending invitation label (close #336)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 9, 2015
1 parent f982a4d commit 2f189e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/org/kontalk/ui/ComposeMessageFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,8 @@ public void onReceive(Context context, Intent intent) {
i.putExtra(MessageCenterService.EXTRA_TO, mUserJID);
i.putExtra(MessageCenterService.EXTRA_TYPE, Presence.Type.subscribe.name());
context.startService(i);

setStatusText(getString(R.string.invitation_sent_label));
}

else if (Presence.Type.available.name().equals(type) || Presence.Type.unavailable.name().equals(type)) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
<string name="seen_moment_ago_label">a moment ago</string>
<string name="seen_online_label">online</string>
<string name="seen_typing_label">typing&#8230;</string>
<string name="invitation_sent_label">pending invitation</string>
<string name="pref_custom_background">Custom background</string>
<string name="pref_background_uri">Background</string>
<string name="pref_title_background_uri">Set custom conversations background image</string>
Expand Down

0 comments on commit 2f189e1

Please sign in to comment.