Changeset 787 in code for trunk/user.go


Ignore:
Timestamp:
Feb 25, 2022, 8:05:10 PM (3 years ago)
Author:
contact
Message:

msgstore_fs: fix direct message targets

When fetching messages via draft/chathistory from a conversation
with another user, soju would send the following:

:sender PRIVMSG sender :hey

instead of

:sender PRIVMSG recipient :hey

because the file-system message store format doesn't contain the
original PRIVMSG target.

Fix this by doing some guesswork.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.go

    r781 r787  
    452452        var msgStore messageStore
    453453        if logPath := srv.Config().LogPath; logPath != "" {
    454                 msgStore = newFSMessageStore(logPath, record.Username)
     454                msgStore = newFSMessageStore(logPath, record)
    455455        } else {
    456456                msgStore = newMemoryMessageStore()
Note: See TracChangeset for help on using the changeset viewer.