mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user