我想在聊天中显示时间标签。但是我在解析器之后找不到数据时间。 是否可以在我的lib中添加扩展以获得时间?
我使用https://github.com/robbiehanson/XMPPFramework 简单的客户端示例。
我想使用XEP-0203(XMPPElement + Delay.h)扩展。
答案 0 :(得分:1)
XMPPElement+Delay.m
中进行编译,并将XMPPElement+Delay.h
的行添加到XMPPFramework.h
。-xmppStream:didReceiveMessage
的{{1}}中并记录结果。请务必[message delayedDeliveryDate]
。