@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		MessageHistory that = (MessageHistory) o;

		if (type != that.type) return false;
		if (text != null ? !text.equals(that.text) : that.text != null) return false;

		return true;
	}