empty away message check
@@ -118,9 +118,14 @@ public class KmAwayView extends LinearLayout {
Kommunicate.loadAwayMessage(getContext(), channel.getKey(), new KmAwayMessageHandler() {
@Override
public void onSuccess(Context context, KmApiResponse.KmDataResponse response) {
+ if(!response.getMessageList().isEmpty()) {
awayMessage = response.getMessageList().get(0).getMessage();
handleAwayMessage(true);
}
+ else {
+ handleAwayMessage(false);
+ }
+ }
@Override
public void onFailure(Context context, Exception e, String response) {
