MM-23687 Fix Android Share Extension (currently can't post) (#4096)

Fixes regression introduced in f5369ac9c5
This commit is contained in:
Mattermost Build 2020-03-30 21:36:49 +02:00 committed by GitHub
parent e6099bcaf8
commit f8cc0498fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ public class ShareModule extends ReactContextBaseJavaModule {
JSONObject json = new JSONObject();
try {
json.put("user_id", data.getString("currentUserId"));
if (data.hasKey("channel_id")) {
if (data.hasKey("channelId")) {
json.put("channel_id", data.getString("channelId"));
}
if (data.hasKey("value")) {