./ct_report/coverage/mongoose_graphql_stanza_helper.COVER.html
1 | -module(mongoose_graphql_stanza_helper). |
|
2 |
|
|
3 | -export([row_to_map/1]). |
|
4 |
|
|
5 | -spec row_to_map(mod_mam:message_row()) -> {ok, map()}. |
|
6 | row_to_map(#{id := Id, jid := From, packet := Msg}) -> |
|
7 | :-( |
{Microseconds, _} = mod_mam_utils:decode_compact_uuid(Id), |
8 | :-( |
StanzaID = mod_mam_utils:mess_id_to_external_binary(Id), |
9 | :-( |
Map = #{<<"sender">> => From, <<"timestamp">> => Microseconds, |
10 | <<"stanza_id">> => StanzaID, <<"stanza">> => Msg}, |
|
11 | :-( |
{ok, Map}. |
Line | Hits | Source |
---|