nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 327 forks source link

Issue while deleting a message -- deleteMessage($messageId) #22

Closed OdoricaAjency closed 8 years ago

OdoricaAjency commented 8 years ago

'deleted_from_reciever' is column name in database where as in the function its 'deleted_from_receiver'

nahid commented 8 years ago

ya, but it fixed in new version. Which version do you use?

OdoricaAjency commented 8 years ago

1.1.5 that's the latest version right??

OdoricaAjency commented 8 years ago

Talk.php line 280 $message->deleted_from_receiver = 1; but in the db the column name is 'deleted_from_reciever'.

nahid commented 8 years ago

Thank you @OdoricaAjency for find it out. I just fixed it :)

OdoricaAjency commented 8 years ago

Hey this fix will not help. Everywhere in the code it's 'deleted_from_reciever', changing the table column to 'deleted_from_receiver' will not help

All you need to do is change 'deleted_from_receiver' in Talk.php to 'deleted_from_reciever -- line 280

/nahid/talk/src/Conversations/ConversationRepository.php /nahid/talk/src/Messages/Message.php /nahid/talk/src/Messages/MessageRepository.php all of the above files its 'deleted_from_reciever'.