Easier said than done but try not to wallow in what's happened. It's not helpful in sobriety. Remembering our past mistakes is important so as not to repeat them. Sitting and thinking about them and being upset isn't helpful in staying sober.
The best that you can do about the situation is to stay on the good path. Remind yourself daily about the good work that you're doing right now. It takes some time for people to trust but there will come a day. It makes all the hard work worth it.