Text this: Effect of ultrastrong magnetic fields on laser-produced gamma-ray flashes