[lib][web][native] Refactor invalidSessionDowngrade for setNewSessionActionType
Summary:
issue: https://linear.app/comm/issue/ENG-5888/refactor-invalidsessiondowngrade
We know the id of the keyserver setNewSessionActionType was called for, we should use it instead of the hardcoded ashoatKeyserverID
I will update the logic for logOutActionTypes and deleteAccountActionTypes in next diffs
Test Plan: Tested that the setNewSessionActionType still works - changes the state if invalidSessionDowngrade returns false. Checked that if a cookie or sessionId are changed invalidSessionDowngrade still returns true
Reviewers: michal, kamil, ginsu
Reviewed By: michal
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10096