gajim: simplify code to compute how many logs do we request when...