Add isReachable API to IMessageRecipient.

Add translatable message recentlyForeverAlone.
Add behaviour that preserves reply-recipient only if they are reachable, and update reply-recipient if they are not reachable.
Fixes #248
This commit is contained in:
Ali Moghnieh 2015-10-30 19:58:30 +00:00
parent e5ebeaf724
commit 26045e2ec0
6 changed files with 33 additions and 5 deletions

View file

@ -717,6 +717,10 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
public String getName() {
return this.getBase().getName();
}
@Override public boolean isReachable() {
return getBase().isOnline();
}
@Override public MessageResponse sendMessage(IMessageRecipient recipient, String message) {
return this.messageRecipient.sendMessage(recipient, message);