Fix runtime critical from read marker sending (fixup 3a8fef7)

This commit is contained in:
fiaxh 2020-04-23 16:07:34 +02:00
parent e7bc68ad4d
commit 1db94905ae

View file

@ -207,7 +207,7 @@ public class ChatInteraction : StreamInteractionModule, Object {
case Xep.ChatMarkers.MARKER_DISPLAYED:
if (conversation.get_send_marker_setting(stream_interactor) == Conversation.Setting.ON) {
if (message.type_ == Message.Type.GROUPCHAT) {
if (message.stanza_id == null) return;
if (message.server_id == null) return;
stream.get_module(Xep.ChatMarkers.Module.IDENTITY).send_marker(stream, message.from.bare_jid, message.server_id, message.get_type_string(), Xep.ChatMarkers.MARKER_DISPLAYED);
} else {
if (message.stanza_id == null) return;