Allah’s justice is universal and as such it takes into account every detail. Thus, even if He forgives someone, it doesn’t mean you will not get justice, it’s just that He will administer it how He sees appropriate. Maybe by forgiving the person who wronged you, He will also forgive some other sin of yours or expiate you for something else. He is just, and His justice is always done