equal
deleted
inserted
replaced
386 break |
386 break |
387 end |
387 end |
388 end |
388 end |
389 end |
389 end |
390 |
390 |
|
391 -- XEP-0461: Message Replies |
|
392 local reply = item:get_child("reply", "urn:xmpp:reply:0"); |
|
393 |
391 if body or verb or oob then |
394 if body or verb or oob then |
392 local line = { |
395 local line = { |
393 id = item.attr.id, |
396 id = item.attr.id, |
394 key = key; |
397 key = key; |
395 datetime = datetime.datetime(when); |
398 datetime = datetime.datetime(when); |
399 lang = lang; |
402 lang = lang; |
400 nick = nick; |
403 nick = nick; |
401 st_name = item.name; |
404 st_name = item.name; |
402 st_type = item.attr.type; |
405 st_type = item.attr.type; |
403 edit = edit; |
406 edit = edit; |
|
407 reply = reply and reply.attr.id; |
404 }; |
408 }; |
405 if oob then |
409 if oob then |
406 line.oob = { |
410 line.oob = { |
407 url = oob:get_child_text("url"); |
411 url = oob:get_child_text("url"); |
408 desc = oob:get_child_text("desc"); |
412 desc = oob:get_child_text("desc"); |