diff --git a/app/views/RoomInfoEditView/index.tsx b/app/views/RoomInfoEditView/index.tsx index 9af031896..bdfd8cf6c 100644 --- a/app/views/RoomInfoEditView/index.tsx +++ b/app/views/RoomInfoEditView/index.tsx @@ -6,6 +6,7 @@ import isEmpty from 'lodash/isEmpty'; import { Alert, Keyboard, ScrollView, Text, TextInput, TouchableOpacity, View, StyleSheet } from 'react-native'; import ImagePicker, { Image } from 'react-native-image-crop-picker'; import { connect } from 'react-redux'; +import { Subscription } from 'rxjs'; import { deleteRoom } from '../../actions/room'; import { themes } from '../../lib/constants'; @@ -85,6 +86,7 @@ interface IRoomInfoEditViewProps extends IBaseScreen { randomValue = random(15); + private querySubscription: Subscription | undefined; private room: TSubscriptionModel; private name: TextInput | null | undefined; private description: TextInput | null | undefined; @@ -121,6 +123,12 @@ class RoomInfoEditView extends React.Component { const { route, @@ -139,8 +147,12 @@ class RoomInfoEditView extends React.Component { + this.room = data; + this.init(this.room); + }); const result = await hasPermission( [