local echo: Make get_next_local_id() less aggressive.
local echo: Make get_next_local_id() less aggressive.

We now make it so that get_next_local_id() only returns up
to 5 local ids relative to any given max id.

For example, if your pointer is at message 999, we'd give out
999.01, 999.02, ..., 999.05.

We also avoid giving out the same local id twice.  This prevents
a bug where if you had aborted a previously failed locally echoed
message, a subsequent local echo would get into a funny state.

In order to to prevent false alarms on using the same local id
twice, we call get_next_local_id() later in the try_deliver_locally()
function.

zulip/zulip,verma-varsha/zulip,Galexrt/zulip,shubhamdhama/zulip,shubhamdhama/zulip,showell/zulip,synicalsyntax/zulip,vabs22/zulip,timabbott/zulip,showell/zulip,verma-varsha/zulip,brainwane/zulip,synicalsyntax/zulip,vaidap/zulip,zulip/zulip,kou/zulip,vaidap/zulip,brainwane/zulip,kou/zulip,jackrzhang/zulip,timabbott/zulip,timabbott/zulip,rht/zulip,kou/zulip,brockwhittaker/zulip,synicalsyntax/zulip,hackerkid/zulip,dhcrzf/zulip,andersk/zulip,rht/zulip,mahim97/zulip,verma-varsha/zulip,eeshangarg/zulip,showell/zulip,kou/zulip,Galexrt/zulip,eeshangarg/zulip,synicalsyntax/zulip,hackerkid/zulip,amanharitsh123/zulip,mahim97/zulip,shubhamdhama/zulip,timabbott/zulip,jackrzhang/zulip,verma-varsha/zulip,showell/zulip,hackerkid/zulip,brainwane/zulip,brainwane/zulip,verma-varsha/zulip,punchagan/zulip,tommyip/zulip,rht/zulip,vabs22/zulip,timabbott/zulip,zulip/zulip,rishig/zulip,andersk/zulip,andersk/zulip,showell/zulip,brainwane/zulip,vaidap/zulip,hackerkid/zulip,punchagan/zulip,brainwane/zulip,mahim97/zulip,hackerkid/zulip,rishig/zulip,shubhamdhama/zulip,brockwhittaker/zulip,timabbott/zulip,mahim97/zulip,Galexrt/zulip,brockwhittaker/zulip,Galexrt/zulip,jackrzhang/zulip,eeshangarg/zulip,jackrzhang/zulip,amanharitsh123/zulip,vabs22/zulip,shubhamdhama/zulip,rht/zulip,dhcrzf/zulip,synicalsyntax/zulip,rht/zulip,tommyip/zulip,dhcrzf/zulip,tommyip/zulip,hackerkid/zulip,dhcrzf/zulip,dhcrzf/zulip,zulip/zulip,eeshangarg/zulip,Galexrt/zulip,dhcrzf/zulip,eeshangarg/zulip,hackerkid/zulip,brockwhittaker/zulip,showell/zulip,shubhamdhama/zulip,zulip/zulip,andersk/zulip,jackrzhang/zulip,rht/zulip,kou/zulip,brockwhittaker/zulip,jackrzhang/zulip,zulip/zulip,shubhamdhama/zulip,Galexrt/zulip,tommyip/zulip,vaidap/zulip,rishig/zulip,synicalsyntax/zulip,vaidap/zulip,andersk/zulip,tommyip/zulip,brockwhittaker/zulip,kou/zulip,Galexrt/zulip,vabs22/zulip,timabbott/zulip,vabs22/zulip,andersk/zulip,amanharitsh123/zulip,rishig/zulip,rht/zulip,punchagan/zulip,jackrzhang/zulip,zulip/zulip,punchagan/zulip,punchagan/zulip,eeshangarg/zulip,amanharitsh123/zulip,synicalsyntax/zulip,punchagan/zulip,rishig/zulip,vabs22/zulip,rishig/zulip,amanharitsh123/zulip,eeshangarg/zulip,vaidap/zulip,verma-varsha/zulip,mahim97/zulip,tommyip/zulip,showell/zulip,rishig/zulip,andersk/zulip,amanharitsh123/zulip,tommyip/zulip,punchagan/zulip,mahim97/zulip,kou/zulip,dhcrzf/zulip,brainwane/zulip