It was written to a Church that was suffering from persecution from the Romans to give them spiritual strength. Telling from the historical perspective.
That certainly doesnt preclude it from containing future prophecy. And the 7 Churches who received letters were suffering much more from pagan persecution and exclusion from the guilds for refusing to attend pagan guild festivals thus preventing them from earning a living. The near/far aspect of biblical prophecy has been recognized by most biblical scholars and commentators.