From 3eb7e7688dea39fa83f41c1f9aba79a962ef1a15 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 25 Jun 2010 04:36:06 +0200 Subject: Create conversation tabs for new conversations --- src/core/ephraim_conv.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/ephraim_conv.erl') diff --git a/src/core/ephraim_conv.erl b/src/core/ephraim_conv.erl index b502166..3010036 100644 --- a/src/core/ephraim_conv.erl +++ b/src/core/ephraim_conv.erl @@ -2,12 +2,13 @@ -compile([debug_info, export_all]). -record(conv_state, { - jid :: exmpp_jid:jid() + jid :: binary() }). --spec init(exmpp_jid:jid()) -> ok. +-spec init(binary()) -> ok. init(JID) -> io:format("Starting a conversation with ~p~n", [JID]), + loop(#conv_state{jid=JID}), io:format("Stopping a conversation with ~p~n", [JID]). @@ -18,7 +19,7 @@ loop(State) -> ok; {receive_message, Packet} -> - io:format("Received packet from ~p:~n~p~n", [State#conv_state.jid, Packet]), + io:format("Received message from ~p:~n~p~n", [State#conv_state.jid, Packet]), loop(State); Msg -> -- cgit v1.2.3