|
|
|
@ -3,6 +3,7 @@ import { FileServerV2Request } from '../../fileserver/FileServerApiV2';
|
|
|
|
|
import { PubKey } from '../../session/types';
|
|
|
|
|
import { allowOnlyOneAtATime } from '../../session/utils/Promise';
|
|
|
|
|
import { updateDefaultRooms, updateDefaultRoomsInProgress } from '../../state/ducks/defaultRooms';
|
|
|
|
|
import { BlockedNumberController } from '../../util';
|
|
|
|
|
import { getCompleteUrlFromRoom } from '../utils/OpenGroupUtils';
|
|
|
|
|
import { parseOpenGroupV2 } from './JoinOpenGroupV2';
|
|
|
|
|
import { getAllRoomInfos } from './OpenGroupAPIV2';
|
|
|
|
@ -100,7 +101,11 @@ export const parseMessages = async (
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _.compact(parsedMessages).sort((a, b) => (a.serverId || 0) - (b.serverId || 0));
|
|
|
|
|
return _.compact(
|
|
|
|
|
parsedMessages.map(m =>
|
|
|
|
|
m && m.sender && !BlockedNumberController.isBlocked(m.sender) ? m : null
|
|
|
|
|
)
|
|
|
|
|
).sort((a, b) => (a.serverId || 0) - (b.serverId || 0));
|
|
|
|
|
};
|
|
|
|
|
// tslint:disable: no-http-string
|
|
|
|
|
const defaultServerUrl = 'http://116.203.70.33';
|
|
|
|
|