equal
deleted
inserted
replaced
185 local photo = x_vcard_update:get_child("photo") |
185 local photo = x_vcard_update:get_child("photo") |
186 if not photo then |
186 if not photo then |
187 photo = st.stanza("photo") |
187 photo = st.stanza("photo") |
188 photo:text(hash) |
188 photo:text(hash) |
189 x_vcard_update:add_child(photo) |
189 x_vcard_update:add_child(photo) |
190 elseif photo:get_text() then |
|
191 photo:text(hash) |
|
192 end |
190 end |
193 end |
191 end |
194 end |
192 end |
195 |
193 |
196 module:hook("pre-presence/full", on_send_presence) |
194 module:hook("pre-presence/full", on_send_presence) |