Re: [Gajim-devel] Indicating about old messages

2016-05-15 Thread Thilo Molitor
Maybe I can help ;)
For me, my patch made this bug occur less often, but I still encounter this 
behaviour from time to time, too.

My problem is: I have no time to debug this further :/
@Илья Валеев: do you know how to reproduce this bug?
A detailed list of steps could help Yann to debug this further.


Additionally I would propose the following:
Currently the deduplication of logged messages is done solely by using the 
time (+/- 5 minutes), the message text and the sender jid (of course).

In my opinion it would be much better to use the same information as used in 
the deduplication of incoming messages I added some month ago.
Especially the id of the message stanza would be interesting for 
deduplication.

But I'm not sure if this would help solving this bug.

@Yann, Илья Валеев: can we discuss this further in the bug report?
This would keep all opinions about this in one place:
https://trac.gajim.org/ticket/8277


tmolitor



Am Sonntag, 15. Mai 2016, 16:19:30 schrieb Yann Leboulanger:
> On 05/12/2016 03:28 AM, Илья Валеев wrote:
> > 03.04.2016 19:55, Yann Leboulanger пишет:
> >> On 04/02/2016 07:17 PM, Илья Валеев wrote:
> >>> 30.03.2016 00:19, Yann Leboulanger пишет:
>  Ok so it's a MAM message you receive. I think this is something that
>  is fixed in our repository. You can try with the daily debian package,
>  that should fix your problem.
> >>> 
> >>> Tested it with Gajim-2016.03.30, problem does not solved. Log (search by
> >>> JID):
> >>> 
> >>>  >>> jid='cont...@telegram.xmpp'>
> >>> Telegram
> >>> 
> >>> 
> >>> -
> >>> 
> >>> 
> >>>  >>> type='unavailable'>  >>> hash='sha-1' node='spectrum' ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
> >>> 
> >>> 
> >>> -
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>>  >>> to='ilia@xmpp' type='chat'>
> >>> Ilia I am ready
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> -
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>>  >>> ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
> >>> 
> >>> 
> >>> 
> >>> 
> >>> There is only 1 message ("Ilia I am ready"), but I recieved it only
> >>> once. Chat log:
> >>> 
> >>> ‎[15:11:20] ‎Telegram contact‎: message 1
> >>> ‎[15:11:39] ‎Telegram contact‎: message 2
> >>> ‎[16:50:24] ‎ilia‎: ok
> >>> ‎[12:24:55] ‎Telegram contact‎: Ilia I am ready
> >>> # Turn computer to sleep mode, wake it next day and Gajim shows that
> >>> there are 2 "new" messages:
> >>> ‎‎2  days ago‎ [04:53:11] ‎Telegram contact‎: message 1
> >>> ‎‎2  days ago [04:53:31] ‎Telegram contact‎: message 2
> >>> 
> >>> 
> >>> Any ideas what can it be?
> >> 
> >> Unfortunately I have no idea what could happen. It seems Gajim shows
> >> messages that is not received, so 2 possibilities: it gets it from local
> >> logs, or notification events are not correctly cleaned and are
> >> re-printed later somehow.
> >> 
> >> There is a ticket about that: https://trac.gajim.org/ticket/8277, let's
> >> continue discuss there
> > 
> > Since I can not write to Gajim tracker, will write here.
> > 
> > Gajim 0.16.5 snapshot from 2016.05.10 still have this issue on my
> > Debian, but much less. Since building I got this only once (today)
> > only from one contact.
> > 
> > Can it happen due to blocking write permissions to some profile
> > files/folders? There are:
> > 
> > /home/ilia/.kde/share/apps/RecentDocuments
> > 
> > /home/ilia/.recently-used
> > 
> > /home/ilia/.local/share/recently-used.xbel
> 
> I haven't seen your post in the spam logs.
> We can't dbug things if information are in both places.
> More information are needed, and I'm not able to really help as I never
> reproduced the problem

___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-05-13 Thread Илья Валеев
12.05.2016 06:28, Илья Валеев пишет:
> 03.04.2016 19:55, Yann Leboulanger пишет:
>> On 04/02/2016 07:17 PM, Илья Валеев wrote:
>>> 30.03.2016 00:19, Yann Leboulanger пишет:
 Ok so it's a MAM message you receive. I think this is something that
 is fixed in our repository. You can try with the daily debian package,
 that should fix your problem. 
>>> Tested it with Gajim-2016.03.30, problem does not solved. Log (search by
>>> JID):
>>>
>>> 
>>> Telegram
>>> 
>>>
>>> -
>>>
>>> 
>>> 
>>> >> ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
>>> 
>>>
>>> -
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> >> to='ilia@xmpp' type='chat'>
>>> Ilia I am ready
>>> 
>>> 
>>> 
>>> 
>>>
>>> -
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> >> ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
>>> 
>>>
>>>
>>>
>>> There is only 1 message ("Ilia I am ready"), but I recieved it only
>>> once. Chat log:
>>>
>>> ‎[15:11:20] ‎Telegram contact‎: message 1
>>> ‎[15:11:39] ‎Telegram contact‎: message 2
>>> ‎[16:50:24] ‎ilia‎: ok
>>> ‎[12:24:55] ‎Telegram contact‎: Ilia I am ready
>>> # Turn computer to sleep mode, wake it next day and Gajim shows that
>>> there are 2 "new" messages:
>>> ‎‎2  days ago‎ [04:53:11] ‎Telegram contact‎: message 1
>>> ‎‎2  days ago [04:53:31] ‎Telegram contact‎: message 2
>>>
>>>
>>> Any ideas what can it be?
>>>
>> Unfortunately I have no idea what could happen. It seems Gajim shows
>> messages that is not received, so 2 possibilities: it gets it from local
>> logs, or notification events are not correctly cleaned and are
>> re-printed later somehow.
>>
>> There is a ticket about that: https://trac.gajim.org/ticket/8277, let's
>> continue discuss there
>>
>
> Since I can not write to Gajim tracker, will write here.
>
> Gajim 0.16.5 snapshot from 2016.05.10 still have this issue on my
> Debian, but much less. Since building I got this only once (today)
> only from one contact.
>
> Can it happen due to blocking write permissions to some profile
> files/folders? There are:
>
> /home/ilia/.kde/share/apps/RecentDocuments
>
> /home/ilia/.recently-used
>
> /home/ilia/.local/share/recently-used.xbel
>
>
> ___
> Gajim-devel mailing list
> Gajim-devel@gajim.org
> https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Bug also affects with 0.16.5_gpg7 on Windows 7 x64. There is no especial
in log:
> 13.05.2016 21:01:49 (E) gajim.c.ged: Error while running an even
> handler:  >
> 14.05.2016 10:32:28 (W) gajim.plugin_system.omemo: jabber.ru ⇒ Missing
> keys for sen...@example.org: 2
> 14.05.2016 10:32:29 (W) gajim.plugin_system.omemo: jabber.ru ⇒ Missing
> keys for sen...@example.org: 2
> 14.05.2016 10:33:07 (W) gajim.c.connection: No reply received for
> keepalive ping. Reconnecting.
> 14.05.2016 10:33:27 (W) gajim.plugin_system.omemo: jabber.ru ⇒ Missing
> keys for sen...@example.org: 2
> 14.05.2016 10:33:27 (W) gajim.plugin_system.omemo: jabber.ru ⇒ Missing
> keys for sen...@example.org: 2

___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-05-11 Thread Илья Валеев
03.04.2016 19:55, Yann Leboulanger пишет:
> On 04/02/2016 07:17 PM, Илья Валеев wrote:
>> 30.03.2016 00:19, Yann Leboulanger пишет:
>>> Ok so it's a MAM message you receive. I think this is something that
>>> is fixed in our repository. You can try with the daily debian package,
>>> that should fix your problem. 
>> Tested it with Gajim-2016.03.30, problem does not solved. Log (search by
>> JID):
>>
>> 
>> Telegram
>> 
>>
>> -
>>
>> 
>> 
>> > ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
>> 
>>
>> -
>>
>> 
>> 
>> 
>> 
>> 
>> > to='ilia@xmpp' type='chat'>
>> Ilia I am ready
>> 
>> 
>> 
>> 
>>
>> -
>>
>> 
>> 
>> 
>> 
>> 
>> > ver='+KuUnE7eOpeLHeQAgmAJd6Uk+Q0='/>
>> 
>>
>>
>>
>> There is only 1 message ("Ilia I am ready"), but I recieved it only
>> once. Chat log:
>>
>> ‎[15:11:20] ‎Telegram contact‎: message 1
>> ‎[15:11:39] ‎Telegram contact‎: message 2
>> ‎[16:50:24] ‎ilia‎: ok
>> ‎[12:24:55] ‎Telegram contact‎: Ilia I am ready
>> # Turn computer to sleep mode, wake it next day and Gajim shows that
>> there are 2 "new" messages:
>> ‎‎2  days ago‎ [04:53:11] ‎Telegram contact‎: message 1
>> ‎‎2  days ago [04:53:31] ‎Telegram contact‎: message 2
>>
>>
>> Any ideas what can it be?
>>
>
> Unfortunately I have no idea what could happen. It seems Gajim shows
> messages that is not received, so 2 possibilities: it gets it from local
> logs, or notification events are not correctly cleaned and are
> re-printed later somehow.
>
> There is a ticket about that: https://trac.gajim.org/ticket/8277, let's
> continue discuss there
>

Since I can not write to Gajim tracker, will write here.

Gajim 0.16.5 snapshot from 2016.05.10 still have this issue on my
Debian, but much less. Since building I got this only once (today) only
from one contact.

Can it happen due to blocking write permissions to some profile
files/folders? There are:

/home/ilia/.kde/share/apps/RecentDocuments

/home/ilia/.recently-used

/home/ilia/.local/share/recently-used.xbel


___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-04-02 Thread Илья Валеев
30.03.2016 00:19, Yann Leboulanger пишет:
> Ok so it's a MAM message you receive. I think this is something that
> is fixed in our repository. You can try with the daily debian package,
> that should fix your problem. 

Tested it with Gajim-2016.03.30, problem does not solved. Log (search by
JID):


Telegram


-






-







Ilia I am ready





-











There is only 1 message ("Ilia I am ready"), but I recieved it only
once. Chat log:

‎[15:11:20] ‎Telegram contact‎: message 1
‎[15:11:39] ‎Telegram contact‎: message 2
‎[16:50:24] ‎ilia‎: ok
‎[12:24:55] ‎Telegram contact‎: Ilia I am ready
# Turn computer to sleep mode, wake it next day and Gajim shows that
there are 2 "new" messages:
‎‎2  days ago‎ [04:53:11] ‎Telegram contact‎: message 1
‎‎2  days ago [04:53:31] ‎Telegram contact‎: message 2


Any ideas what can it be?

-- 
Идентификатор открытого ключа: 1D38C8C9
Отпечаток: 6210 01B6 A34E E490 A9E4  87DD 841D 0ABE 1D38 C8C9

___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-29 Thread Yann Leboulanger
On 03/19/2016 09:37 AM, Илья Валеев wrote:
> Today Gajim shows message that arrived 18.03.2016 11:04:03. XML console
> log contain 2660 strings, so I search by message contents. I does not
> found anything. Also I search by JID, there is results:
>
>
[...]

Ok so it's a MAM message you receive. I think this is something that is
fixed in our repository. You can try with the daily debian package, that
should fix your problem.

-- 
Yann
___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-19 Thread Yann Leboulanger
On 03/18/2016 07:46 PM, Илья Валеев wrote:
> Hello!
> I'm have unexpected behaviour of Gajim. When I turn computer to sleep
> mode and connect to XMPP server next day, Gajim notify me about /old/
> messages (blink in tray and task bar). It shows old messages from
> contact from previous day, added them to end of chat window (and
> displays that they was received one day ago). No new record in history
> appears.
> restore_lines=0
> restore_timeout=0
> I can not find any more related options.
> Is it bug and I should create issue or is it expected behaviour? Am I
> right that this is Gajim functionality? If it expected behaviour, can
> you tell me how to disable it?
>
> Ejabberd 16.02, Gajim 0.16.5, Debian 8 amd64.

Were those messages received before you turn your computer to sleep ? or
while you were offline?

-- 
Yann
___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-19 Thread Илья Валеев
They were received in Gajim (for now it is single client I use to
connect this server). I:
- readed this messages and answered
- turn computer to sleep
- turn it on next day and reconnect Gajim to server
- see new message notification in Gajim and old messages I've seen
before at the end of the chat window

19.03.2016 00:35, Yann Leboulanger пишет:
> On 03/18/2016 07:46 PM, Илья Валеев wrote:
>> Hello!
>> I'm have unexpected behaviour of Gajim. When I turn computer to sleep
>> mode and connect to XMPP server next day, Gajim notify me about /old/
>> messages (blink in tray and task bar). It shows old messages from
>> contact from previous day, added them to end of chat window (and
>> displays that they was received one day ago). No new record in history
>> appears.
>> restore_lines=0
>> restore_timeout=0
>> I can not find any more related options.
>> Is it bug and I should create issue or is it expected behaviour? Am I
>> right that this is Gajim functionality? If it expected behaviour, can
>> you tell me how to disable it?
>>
>> Ejabberd 16.02, Gajim 0.16.5, Debian 8 amd64.
> Were those messages received before you turn your computer to sleep ? or
> while you were offline?
>

-- 
Идентификатор открытого ключа: 1D38C8C9
Отпечаток: 6210 01B6 A34E E490 A9E4  87DD 841D 0ABE 1D38 C8C9

___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-19 Thread Yann Leboulanger
On 03/18/2016 08:43 PM, Илья Валеев wrote:
> They were received in Gajim (for now it is single client I use to
> connect this server). I:
> - readed this messages and answered
> - turn computer to sleep
> - turn it on next day and reconnect Gajim to server
> - see new message notification in Gajim and old messages I've seen
> before at the end of the chat window
>

That would be nice if you could open XML console just before you turn
computer to sleep, then we'll see if when you reconnect, those messages
are sent by the server once again or if it's Gajim itself that re-print
them.
-- 
Yann
___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-19 Thread Илья Валеев
For now it is local server which I use to have some transports, so I
have not Gajim users in roster. For transports I use Spectrum 2.02 and
libpurple and see old messages from skype, telegram and whatsapp users.
I suggest that it is Gajim bug/settings because that does not looks like
/new/ messages received, in this case it would be a new records in history.
In Gajim I changed this settings:

/True:/
send_on_ctrl_enter
roster_window_skip_taskbar
show_unread_tab_icon
shell_like_completion
log_contact_status_changes

/False:/
autonegotiate_esessions
enable_esessions
escape_key_closes
notification_preview_message
remember_opened_chat_controls
restored_messages_small
ascii_formatting
print_status_in_chats

gc_refer_to_nick_char - empty
restore_lines - 0
restore_timeout - 0
connection_types - tls
file_transfer_proxies - empty
change_status_window_timeout - 120
search_engine - empty
max_conversation_lines - 11500
muc_restore_lines - -1

It does not looks that this settings can broke something in my case.


18.03.2016 23:54, Alex Malmyguine пишет:
>
> FWIW this issue does not exist with Ignite OpenFire server that I am
> using.
>
> Sometimes I do get a couple of old messages in the chat window when
> re-opening a chat with someone, but never receive “stale” messages
> again in tray once they have been received on my side.
>
> Gajim 0.16.5 with all settings out of the box except a few _/print/_
> settings that should not affect this behaviour.
>
> Do you get those old messages from the users of Gajim as well?
>
>  
>
> Alex
>
>  
>
> *From:*Gajim-devel [mailto:gajim-devel-boun...@gajim.org] *On Behalf
> Of * ??
> *Sent:* Friday, March 18, 2016 2:47 PM
> *To:* gajim-devel@gajim.org
> *Subject:* [Gajim-devel] Indicating about old messages
>
>  
>
> Hello!
> I'm have unexpected behaviour of Gajim. When I turn computer to sleep
> mode and connect to XMPP server next day, Gajim notify me about /old/
> messages (blink in tray and task bar). It shows old messages from
> contact from previous day, added them to end of chat window (and
> displays that they was received one day ago). No new record in history
> appears.
> restore_lines=0
> restore_timeout=0
> I can not find any more related options.
> Is it bug and I should create issue or is it expected behaviour? Am I
> right that this is Gajim functionality? If it expected behaviour, can
> you tell me how to disable it?
>
> Ejabberd 16.02, Gajim 0.16.5, Debian 8 amd64.
>
> -- 
> Идентификатор открытого ключа: 1D38C8C9
> Отпечаток: 6210 01B6 A34E E490 A9E4  87DD 841D 0ABE 1D38 C8C9
___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

Re: [Gajim-devel] Indicating about old messages

2016-03-19 Thread Илья Валеев
Today Gajim shows message that arrived 18.03.2016 11:04:03. XML console
log contain 2660 strings, so I search by message contents. I does not
found anything. Also I search by JID, there is results:


Telegram


-






-










my last message to contact
ZjSRetLolkdbozWvVjzTSSSnXSgFzYlj





-











19.03.2016 02:47, Yann Leboulanger пишет:
> That would be nice if you could open XML console just before you turn
> computer to sleep, then we'll see if when you reconnect, those
> messages are sent by the server once again or if it's Gajim itself
> that re-print them.
___
Gajim-devel mailing list
Gajim-devel@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/gajim-devel