message: [FIX] Room view header crashes when destructuring reducer
diff: @@ -53,7 +53,9 @@ const styles = StyleSheet.create({
  @connect((state) => {
  let status = '';
  let title = '';
  - if (state.room.t === 'd') {
  + const roomType = state.room.t;
  + if (roomType === 'd') {
  + if (state.login.user && state.login.user.id) {
  const { id: loggedUserId } = state.login.user;
  const userId = state.room.rid.replace(loggedUserId, '').trim();
  if (userId === loggedUserId) {
  @@ -62,18 +64,22 @@ const styles = StyleSheet.create({
  const user = state.activeUsers[userId];
  status = (user && user.status) || 'offline';
  }
  + }
  title = state.settings.UI_Use_Real_Name ? state.room.fname : state.room.name;
  } else {
  title = state.room.name;
  }
  + let otherUsersTyping = [];
  + if (state.login.user && state.login.user.username) {
  const { username } = state.login.user;
  const { usersTyping } = state.room;
  - const otherUsersTyping = usersTyping.filter(_username => _username !== username);
  + otherUsersTyping = usersTyping.filter(_username => _username !== username);
  + }
  return {
  usersTyping: otherUsersTyping,
  - type: state.room.t,
  + type: roomType,
  title,
  status
  };
  