don't allow to add POI if user can't send in current chat, e.g. is not a member anymore (#2178)

This commit is contained in:
Asiel Díaz Benítez
2021-12-27 09:05:54 -05:00
committed by GitHub
parent 2abea2f651
commit 45bb431bad
@@ -306,7 +306,7 @@ public class MapActivity extends BaseActivity implements Observer,
}
private boolean handleAddPoiClick(LatLng point) {
if (chatId == 0) {
if (chatId == 0 || !DcHelper.getContext(this).getChat(chatId).canSend()) {
return false;
}