Little rework in receiver dialog / receiver state machine

Receivers state machine has been changed from if...else
into switch ... case ... form, which is more readable.